fix for shifted end-of-day

pull/15/head
Gwyndolyn Marchant 2021-06-16 23:02:27 -04:00
parent 5f3fef0e8f
commit d0b074e0fe
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(