Skip to content
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

Recurring task completion generates a Creation date on the new task when it shouldn't #539

Closed
Piscean opened this issue Oct 2, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@Piscean
Copy link

Piscean commented Oct 2, 2023

Bug Report

IMPORTANT:
Please follow this template strictly when reporting bugs. Providing detailed and accurate information helps the development team to understand and address the issue effectively.

App Version: [2.0.0-dev13]

Platform: [Windows]

Installation Method: [Direct Download]

Bug Description:
The Settings dialog says "Append creation date when todo is created". I have that turned off. When I complete a recurring task, the newly created task has the creation date at the front of the task.

Steps to Reproduce:

  1. Turn Append creation date off in settings
  2. Create a daily recurring event
    --> Verify the creation date wasn't prepended
  3. Complete that task
    --> Check the todo.txt file and you'll see the task now has a creation date prepended.

Expected Behavior:
When a recurring task is completed, the newly created future task should not have the creation date, since I have that setting turned off in Settings.

Actual Behavior:
All future tasks will have the creation date

Additional Information:

  • [Include any additional information that might be relevant to the bug, such as error messages or console logs.]

Screenshots:
[If applicable, include screenshots that demonstrate the bug.]

System Information:

  • OS Version: Windows 10 and 11
  • Processor: Intel
  • RAM: 16GB & 64GB
  • Graphics Card: Intel(R) Iris(R) Xe Graphics Family, Intel Corporation compatible

Reproducibility:

  • [Always]

Impact:

  • [Moderate]

Workaround:
None

@Piscean Piscean added the bug Something isn't working label Oct 2, 2023
@ransome1 ransome1 moved this to In Progress in sleek 2.x Oct 10, 2023
@github-project-automation github-project-automation bot moved this from In Progress to Done in sleek 2.x Oct 10, 2023
@ransome1
Copy link
Owner

@Piscean could you please check if this still occurs in https://github.com/ransome1/sleek/releases/tag/v2.0.0-dev15?

@Piscean
Copy link
Author

Piscean commented Oct 10, 2023 via email

@ransome1
Copy link
Owner

ransome1 commented Oct 10, 2023

However, now the completed task has the completion date listed twice.

That is not a double completion date, it is actually creation and completion date. Unfortunately the todo.txt parser (jsTodoTxt in the latest version) refuses to add a completion date, if there is no creation date. As a workaround, everytime when a todo is marked as complete, a creation date needs to be added by sleek. So in case a todo did not already have a creation date, todays date will be added as creation date. As long as this behavior doesn't change upstream, we need to live with this workaround.

The issue has been raised here.

@Piscean
Copy link
Author

Piscean commented Oct 10, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

2 participants