Fix dates in the new year
This commit is contained in:
parent
aed88b7c9a
commit
4b4c8f207e
@ -45,11 +45,6 @@ class DateRangeMixin:
|
||||
"start": now.replace(day=1),
|
||||
"end": now,
|
||||
},
|
||||
{
|
||||
"name": "Last month",
|
||||
"start": now.replace(day=1, month=now.month - 1),
|
||||
"end": now.replace(day=1, month=now.month) - timezone.timedelta(days=1),
|
||||
},
|
||||
{
|
||||
"name": "This year",
|
||||
"start": now.replace(day=1, month=1),
|
||||
|
Loading…
Reference in New Issue
Block a user