GothenburgBitFactory / task-timewarrior-hook

MIT License
5 stars 0 forks source link

Start, end, duration time printed in CLI by taskwarrior-timewarrior python hook are incorrect. #14

Open poetaman opened 3 years ago

poetaman commented 3 years ago

As pointed in the comment https://github.com/GothenburgBitFactory/taskwarrior/issues/2514#issuecomment-869069985, the taskwarrior-timewarrior python hook prints incorrect start/end/duration times for some >>task commands. The example is described in the comment at https://github.com/GothenburgBitFactory/taskwarrior/issues/2514#issuecomment-869065216 of taskwarrior's ticket: https://github.com/GothenburgBitFactory/taskwarrior/issues/2514. Here's the minimal & edited quote from my comment that invites this ticket.

While the problem of https://github.com/GothenburgBitFactory/taskwarrior/issues/2514 fixed, the information printed in stdout is still incorrect. Check the times printed under "Tracking", and "Recorded" to stdout in teal blue color in screenshot below. The "Started", "Ended" times, and resultant duration are all based on current_timestamp.

Screen Shot 2021-06-26 at 2 34 59 PM

tbabej commented 3 years ago

Some coarse implementation hints are here and here

tbabej commented 3 years ago

@reportaman FYI, perhaps this currently open PR already partially addresses this issue: https://github.com/GothenburgBitFactory/timewarrior/pull/329/

lauft commented 1 year ago

FYI: https://github.com/GothenburgBitFactory/timewarrior/pull/329 has been migrated to https://github.com/GothenburgBitFactory/task-timewarrior-hook/pull/5