Past date ranges seem to be reversed
Original issue by andreymal on 2024-06-02T17:13:45.000Z
Description
There's my understanding of date ranges:
- today: 2024-06-02
- this week: 2024-05-27 .. 2024-06-02 (assuming Monday is the first day of the week)
- beginning of this week: 2024-05-27
- end of this week: 2024-06-02
- last week: 2024-05-20 .. 2024-05-26
- beginning of last week: 2024-05-20
- end of last week: 2024-05-26
However, the actual date ranges seem to be reversed:
-
'beginningOflastWeek': 'now/w-1w'— 2024-05-20 (ok) -
'endOfLastWeek': 'now/w-2w'— 2024-05-13 (?????) -
'lastWeek': ['now/w-1w', 'now/w-2w']— 2024-05-20 .. 2024-05-13 (????????????)
Same with months.
Is this a bug, or am I missing something?
Vikunja Version
any
Browser and version
No response
Can you reproduce the bug on the Vikunja demo site?
Yes
Screenshots
No response
@kolaente commented on 2024-06-02T19:23:42.000Z:
This looks like a bug.
endOfLastWeek should be something like now/w-1w-1d (start of this week, minus one week, minus one day). If this should be "friday of last week" as in, end of the work week, this would be different still.
lastWeek seems to be off by one week and one day.