kostajh / taskwarrior-time-tracking-hook

A simple Taskwarrior hook allowing one to track total time spent on a task.
137 stars 24 forks source link

Time tracking hook fails after setting the totalactivetime manually #16

Closed MikeYPK closed 6 years ago

MikeYPK commented 7 years ago

There are times when I want to update totalactivetime outside of start and stop (e.g. if I couldn't access my machine to start ... or if I forgot to stop the task and need to fix the time later)

task modify allows me to change totalactivetime, but it stores the data in ISO-8601, which causes the hook script to fail.

I created a small patch that seems to fix the issue. Hope this helps!

patch.txt

alexhunsley commented 6 years ago

I've opened a pull request containing @MikeYPK's fix: https://github.com/kostajh/taskwarrior-time-tracking-hook/pull/18