Skip to content

Instantly share code, notes, and snippets.

@tbabej
Created January 17, 2015 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tbabej/b1a2d572b435e1e2868f to your computer and use it in GitHub Desktop.
Save tbabej/b1a2d572b435e1e2868f to your computer and use it in GitHub Desktop.
#!/usr/bin/python
from tasklib.task import Task
task = Task.from_input(modify=True)
touched = False
if 'due' in task._original_data and 'due' in task._data:
original_due_date = task._original_data['due']
current_due_date = task['due']
if (current_due_date - original_due_date).seconds == 3600:
task['due'] = original_due_date
touched = True
print task.export_data()
if touched:
print "Due time shift bug was compensated."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment