fnogatz / clocker

Command-line tool to track project hours
Other
420 stars 31 forks source link

'clocker set' after midnight results in negative duration #23

Closed fnogatz closed 6 years ago

fnogatz commented 9 years ago

Steps to reproduce:

  1. clocker start
  2. clocker stop
  3. clocker set start '$the-date-before 23:59'
  4. `clocker set end $key '0:01'

This will result in a duration of -23:58:00 instead of the expected 00:02:00 for clocker list. This is a common mistake if one starts a clocker before midnight, stops it after midnight, and tries to adjust the end time via clocker set end.

fnogatz commented 6 years ago

This bug has already been solved -- closed here.