Feature request: take into account different lengths of months and years for repeating tasks #698
Loading…
x
Reference in New Issue
Block a user
No description provided.
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?
As I see on try.vikunja.io, the repeating tasks API only uses seconds to calculate next date. But IRL there are some tasks that are tied to a fixed day of month/year, and it would be good if Vikunja could take this into account.
(Not sure how to properly handle 31 Feb... But it seems Google Calendar just skips nonexistent days.) (In general, repeating tasks in Google Calendar is a good role model: they are so powerful.)
For example, I need to pay for the Internet by the 25th of each month:
As another example, I need to pay for cloud storage before January 12 of each year:
Thanks for the suggestion!
I think it makes sense to add this to Vikunja. I've added it to the public backlog.
Implemented in vikunja/api#834 - A new unstable release should be ready soon.
"Monthly" works great, thank you!
But it seems repeat mode doesn't take into account leap years: when I set "Repeat Mode - From Current Date; Each 3 Years", the new due date is set to "Apr 14, 2024" instead of Apr 15, 2024 (however I'm not really sure if this should be considered a bug or a feature)
That could be a bug, would be one to fix in the Go standard library. I'm just telling it "Add this duration (three years in your example) to the current date and set the result as the new date)".
EDIT On second thought this actually looks like a bug in Vikunja - A year for Vikunja is 365 days. And leap years have 366...
I would consider this an edge case though with a non-trivial fix. I'll add it to the backlog but with low priority. If you want to send a PR, go for it 🙂