-
-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'When done' causing wrong done date #2867
Comments
What time zone was the computer/device set to? What time of day did you observe the problem? |
First thought: I am wondering whether this might be the underlying cause: Perhaps some calculation involved in the ‘when done’ code is unintentionally editing a date value. A test would need to written to demonstrate the problem behaviour - hence asking for time and time zone info. |
I am in +0800 timezone (Perth/Australia) and it was about 2pm in the afternoon. Trying it in a sandbox vault today (2024-06-01, ~10.30am, same timezone above) and apparently it has decided to work correctly. I wonder if there is a problematic connection between the Recurrence Date of the newly created task and the Completion date of the old task? |
Thanks, I did wonder... It seems to be the only time-zone that features regularly... |
For future reference, it really helps with development if there are actual steps listed to reproduce the bug, instead of having to gather information from other parts of the ticket.... |
Steps to reproduce
Expected result:
The Done date should be Actual result:
The Done date is a day earlier than the specified value. Note:Repeating with this line gives the correct result:
Removing the |
It doesn't depend on timezone after all... I can reproduce it in UTC and Current UK (BST) time zones. I am now pretty sure the cause is an instance of this: |
Hi @Azurewren, huge thanks for reporting this! It will be fixed in the next release.... |
Just released in Tasks 7.6.0. |
Please check that this issue hasn't been reported before.
Expected Behavior
When I check the below task as done by clicking the check field, it should add today's done date (2024-05-31) and create the recurring task.
- [ ] 🦷 Dentist Check up Appointment 🔁 every 6 months when done ⏳ 2024-05-31
which would turn into:
- [x] 🦷 Dentist Check up Appointment 🔁 every 6 months when done ⏳ 2024-05-31 ✅ 2024-05-31
- [ ] 🦷 Dentist Check up Appointment 🔁 every 6 months when done ➕ 2024-05-31 ⏳ 2024-11-30
Current behaviour
When checked, the task adds yesterday as it's completion date instead.
- [x] 🦷 Dentist Check up Appointment 🔁 every 6 months when done ⏳ 2024-05-31 ✅ 2024-05-30
- [ ] 🦷 Dentist Check up Appointment 🔁 every 6 months when done ➕ 2024-05-31 ⏳ 2024-11-30
I have tried it without the '
when done
' words in the recurrence rule and it works correctly.Steps to reproduce
Maintainer's note: See #2867 (comment) for reproduction steps.
Which Operating Systems are you using?
Obsidian Version
1.6.1 (Insider Release), Installer version 1.5.3
Tasks Plugin Version
7.3.0
Checks
Possible solution
No response
The text was updated successfully, but these errors were encountered: