diff --git a/pomodoroprompt.py b/pomodoroprompt.py index eaf039a..ad307be 100644 --- a/pomodoroprompt.py +++ b/pomodoroprompt.py @@ -49,7 +49,8 @@ def main(): record_task(whatdid, start) continue except KeyboardInterrupt: - print('\n{} time spent, save?'.format(str(diff).split('.')[0])) + time_spent = datetime.now(pytz.utc) - start + print('\n{} time spent, save?'.format(str(time_spent).split('.')[0])) choice = input('[y]/n: ').strip() if choice.lower() in ('y', 'yes', ''): whatdid = pomodoro_prompt_report(whatnext)