Fix last month date range (#187)
This commit is contained in:
parent
71ec196ec4
commit
8b0205a2f7
@ -45,6 +45,13 @@ class DateRangeMixin:
|
|||||||
"start": now.replace(day=1),
|
"start": now.replace(day=1),
|
||||||
"end": now,
|
"end": now,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "Last month",
|
||||||
|
"start": (now.replace(day=1) - timezone.timedelta(days=1)).replace(
|
||||||
|
day=1
|
||||||
|
),
|
||||||
|
"end": now.replace(day=1) - timezone.timedelta(days=1),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "This year",
|
"name": "This year",
|
||||||
"start": now.replace(day=1, month=1),
|
"start": now.replace(day=1, month=1),
|
||||||
|
Loading…
Reference in New Issue
Block a user