forked from mirrors/autodoist
fix for shifted end-of-day
parent
5f3fef0e8f
commit
d0b074e0fe
|
@ -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
|
# Check if the T0 task date has changed
|
||||||
if item['due']['date'] != item['date_old']:
|
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
|
# Mark children for action based on mode
|
||||||
if args.regeneration is not None:
|
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=item_due)
|
||||||
# item.update(due={'date': '2020-05-29', 'is_recurring': True, 'string': 'every day'})
|
# 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:
|
except:
|
||||||
# If date has never been saved before, create a new entry
|
# If date has never been saved before, create a new entry
|
||||||
logging.debug(
|
logging.debug(
|
||||||
|
|
Loading…
Reference in New Issue