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

feat: Add flag to set the timezone on reports

Open aVolpe opened this issue 1 year ago • 0 comments
trafficstars

By default all the dates are in UTC, this commit adds a new flag: '--time-zone' or '-z' that allows the user to pass a timezone.

This is a breaking change, now, by default the used timezone is 'local', meaning the value returned by 'time.local'.

Examples:

  • Madrid Timezone: -z Europe/Madrid
  • Current timezone: -z local

A full list of timezones can be found here: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

This can fix some issues reported in #135.

I'm open to fix this PR with your suggestions.

(note that using the time.local timezone is the currently the only option in some report outputs)

aVolpe avatar Jan 09 '24 17:01 aVolpe