[Bug]: wrapped shows incorrect times when running commands in multiple timezones #2509
Open
1 task done
Labels
bug
Something isn't working
What did you expect to happen?
When I run
atuin wrapped
, I expect it to accurately show what (local) time I usually run commands, despite currently being in a different time zone than usual.I'm usually in UTC+12/+13, running commands during the day (say around 3pm). At the moment I'm in UTC+1, but when I run
atuin wrapped
it should still say 3pm, since that was the local time when I was using my computer.What happened?
I received the output:
This is incorrect, because atuin converted all timestamps to my new local time zone, rather than keep the original time zone.
Fixing this bug requires atuin to store timestamps with time zone information, rather than just UTC. It can then work out the local time when each command was run, and use that to work out the most productive hour.
Git does the same thing: commit timestamps also store the time including timezone.
Atuin doctor output
Code of Conduct
The text was updated successfully, but these errors were encountered: