NiklasRosenstein/git-worklog

--time option bad default arguments

NiklasRosenstein opened this issue · 1 comments

Using the --time option in the worklog checkin or worklog checkout commands does not apply proper default values. This needs to be fixed in git_worklog/timetable:parse_time().

$ git wl checkin --time 15:50
checked in: Niklas Rosenstein at 01/Jan/1900:15:50:00

parse_time() also doesn't add timezone information, which then is missing in .git/worklog/checkin, causing this ValueError on abort/checkout/status.

ValueError: time data '01/Jan/1900:15:50:00' does not match format '%d/%b/%Y:%H:%M:%S %z'