mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-03-22 06:11:08 -05:00
Past date ranges seem to be reversed #465
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vikunja-bot on GitHub (Apr 1, 2025).
Original issue by andreymal on 2024-06-02T17:13:45.000Z
Description
There's my understanding of date ranges:
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
Original issue on Gitea
@kolaente commented on 2024-06-02T19:23:42.000Z:
This looks like a bug.
endOfLastWeekshould be something likenow/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.lastWeekseems to be off by one week and one day.