jazzband / Watson

:watch: A wonderful CLI to track your time!
http://tailordev.github.io/Watson/
MIT License
2.46k stars 240 forks source link

Ability to use a time zone other than the local time zone. #391

Open cazador481 opened 4 years ago

cazador481 commented 4 years ago

I would like to be able to set the timezone that Watson uses. Use case: I live in the eastern time zone, but the computer that I am using and have Watson running on is in the Pacific time zone. I would like to be able to input all my times in the Eastern time zone, I would also like to have the reports, and logs show the dates in the Eastern time zone instead of the Pacific time zone.

I tried to set the TZ env variable to US/Eastern but watson did not seem to use that information.

jmaupetit commented 4 years ago

I think we need to make it explicitly configurable to solve your issue. Frames are stored as UTC timestamps and arrow is responsible for the locale formatting given python's timezone configuration I guess.

Do you have time to work on this?

cazador481 commented 4 years ago

@jmaupetit : To whom are you asking the question?

jmaupetit commented 4 years ago

@jmaupetit : To whom are you asking the question?

You! :wink: