super-productivity icon indicating copy to clipboard operation
super-productivity copied to clipboard

Custom repeat start date isn't the first occurrence of the repeat task

Open dramm33 opened this issue 6 months ago • 7 comments

Expected Behavior

When creating a Custom Repeat Task, it's expected/intuitive that it first occurs on the set "Start date" (which should be the cycle start) and then again according to what is set on the "Repeat every" and "Repeat cycle" fields. E.g.: With the cycle set to repeat every 2 days, and the start date set to 08/26/24, the first occurrence of the task should be on the 26th and the next on the 28th.

Current Behavior

When creating a Custom Repeat Task, the "Start date" starts the count for the amount of time the task won't happen, as if the task just occurred the day before the "Start date". E.g.: With the cycle set to repeat every 2 days, and the start date set to 08/26/24, the first occurrence of the task is on the 27th and the next on the 29th.

Steps to Reproduce

  1. Create a regular task
  2. Use the side panel to add/edit "Repeat Task Config"
  3. Set "Repeat Config" to "Custom repeat config"
  4. Set "Repeat cycle" to "Day", "Month" or "Year". E.g., "Day"
  5. Set "Repeat every" to something other than 1, e.g., "2"
  6. Leave "Start date" as the current date
  7. Set "Scheduled start time" and "Remind at" to something other than blank
  8. Look for the task on the "Timeline" page, at the set date and time

Notes

  1. When the task is set to repeat every 2 months, the task will happen a day before and two months after whatever is set on the "Start date". E.g.: With start on 06/28/24, the next occurrence will be on 08/27/24. This confirms the idea that it's as if the first occurrence of the task was a day before the "Start date".
  2. When the task is set to repeat every 2 years, the task will happen a day before and two years after whatever is set on the "Start date". E.g.: With start on 08/28/22, the next occurrence will be on 08/27/24. This confirms the idea that it's as if the first occurrence of the task was a day before the "Start date".
  3. When the "Repeat cycle" is set to "Week", weird things happen. There might be something else going on. I couldn't understand it well, especially since I'm not even sure what is the expected behavior. If you let me know what it should be doing regarding the relation between the start date and the week, then maybe I can help with the debugging.

Meta Info

META: SP9.0.7 Electron – en-US – Win32 – Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) superProductivity/9.0.7 Chrome/122.0.6261.156 Electron/29.4.5 Safari/537.36

dramm33 avatar Aug 26 '24 16:08 dramm33