wakatime-cli icon indicating copy to clipboard operation
wakatime-cli copied to clipboard

Any plans to suport a timezone setting?

Open fiote opened this issue 6 years ago • 4 comments

Request: Add a timezone setting that accept timezone-strings as value (ex: America/Edmonton, Europe/Dublin, etc). So instead of uploading the time worked on my timezone, it would upload it on the specified one. This can be achieved by changing the timezone of my computer, but I kinda need it to be project-specific.

Reasoning: Most of my work is done on 'local time', but some of it it's for a client in another timezone, and since I slice my payments on days worked sometimes my work 'session' goes through my midnight and messes with the payment calculation.

fiote avatar May 02 '18 22:05 fiote

Hmm, timestamps are sent up as UTC so this setting would need to be a timezone setting for projects on your dashboard.

alanhamlett avatar May 03 '18 00:05 alanhamlett

@alanhamlett Yes, the idea is to have it per project. It could be done on the dashboard side (to group, filter and format the data as another timezone) or on the plugin side (so it would send UTC dates 'in the past' or 'in the future').

fiote avatar May 03 '18 00:05 fiote

@alanhamlett is this something we could do in the cli side? What about a new section [timezone] which is a key value pair of projects's path and olson timezone.

[timezone]
/usr/folder/project* = Europe/Dublin
/user/other/project* = America/Edmonton

gandarez avatar Jan 04 '22 13:01 gandarez

Timezone is a display-only thing. Better to improve the website to allow displaying projects in different time zones.

Or if we wait long enough, everyone in the solar system will use UTC and this won't be an issue.

alanhamlett avatar Jan 04 '22 17:01 alanhamlett