Created
January 17, 2015 20:41
-
-
Save tbabej/b1a2d572b435e1e2868f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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