zeit icon indicating copy to clipboard operation
zeit copied to clipboard

When the start/end time for an existing entry is modified, nanoseconds portion left out

Open khughitt opened this issue 4 years ago • 2 comments

When the start or end time is modified for an existing entry (e.g. zeit entry --finish xx), the updated time is stored without the nanoseconds portion, potentially leading to issues when parsing the output from zeit export.

Version info:

  • zeit commit #ab78ffcd006405051b057be1f25d5b9c16ee0b66

khughitt avatar Feb 05 '21 05:02 khughitt

@khughitt not exactly sure how to solve this issue, since it's more like a user-entry error. If a user specifies every detail in RFC3339 format, then it's being stored correctly:

zeit entry --begin "2021-02-07T11:11:12.917391-04:00" e2b9ac6d-2b57-41e3-9069-db308582d991

It's also questionable whether nanoseconds are actually relevant for time entries. So maybe the fix would be to remove this info altogether?

mrusme avatar Feb 07 '21 19:02 mrusme

@mrusme Ah okay, I was following the example from the README, which doesn't include nanoseconds in the time specification, and hence, I the updated entry didn't have them either.

In any case, I think you are right though -- personally, I can't imagine ever needing something better than ~1 minute resolution. We can save the nanosecond resolution tracking for some future dystopian corporate world >.<.

khughitt avatar Feb 09 '21 06:02 khughitt