samg / timetrap

Simple command line timetracker
http://rubygems.org/gems/timetrap
Other
1.48k stars 116 forks source link

Conifguration option for time zones #110

Closed smcabrera closed 4 years ago

smcabrera commented 9 years ago

I frequently find myself working on different machines and different servers and I really like being able to use this utility on all of them. I keep my timetrap db file on dropbox and keep it synced so that I can check in and out on different machines. The one problem I run into with this workflow though is that when I use a server that's in a different time zone as my local machine it messes up my times.

Could it be possible to specify in the configuration file to specify a UTC offset that times could be made consistent with? I don't think this would super complicated but I'm not sure.

samg commented 9 years ago

@smcabrera - yes I think that would be a great idea. When I initially wrote Timetrap I was not traveling frequently and didn't give timezone support much thought. I think having the tool store times as UTC and then convert to local time for display would be ideal, though care would have to be taken to provide compatibility for users upgrading from an older version.

Unfortunately I probably won't have time to do this work myself in the near future, but I'd happily accept a pull request and provide feedback/input to anyone willing to tackle this.

Thanks!

DannyBen commented 8 years ago

Am also interested in setting a timezone. Maybe I will take a look at the code and see if I can implement.

samg commented 8 years ago

:+1:

categulario commented 4 years ago

duplicate of #96