Merge pull request #15 from GwyndolynMarchant/datefix

Fix for shifted end-of-day
pull/30/head
Hoffelhas 2021-08-24 14:22:10 +02:00 committed by GitHub
commit 2dd6f06b13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -453,10 +453,6 @@ def run_recurring_lists_logic(args, api, item, child_items, child_items_all, reg
# Check if the T0 task date has changed
if item['due']['date'] != item['date_old']:
# Save the new date for reference us
item.update(
date_old=item['due']['date'])
# Mark children for action based on mode
if args.regeneration is not None:
@ -529,6 +525,10 @@ def run_recurring_lists_logic(args, api, item, child_items, child_items_all, reg
item.update(due=item_due)
# item.update(due={'date': '2020-05-29', 'is_recurring': True, 'string': 'every day'})
# Save the new date for reference us
item.update(
date_old=item['due']['date'])
except:
# If date has never been saved before, create a new entry
logging.debug(