Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit log entries in my machine's timezone #45

Closed
prismec opened this issue May 9, 2018 · 2 comments
Closed

Edit log entries in my machine's timezone #45

prismec opened this issue May 9, 2018 · 2 comments

Comments

@prismec
Copy link

prismec commented May 9, 2018

gtt start 4711
gtt stop 4711
gtt edit L74n5Rn2X

displays

{
	...,
	"start": "2018-05-09T06:39:06.523Z",
	"stop": "2018-05-09T06:39:11.235Z"
}

It would be great if the timestamps are in my local timezone or if I could configure that somehow.

@kriskbx
Copy link
Owner

kriskbx commented May 11, 2018

I will implement timezones in the next version. You should be able to specify them in your config via timezone: "Europe/Berlin". I'll keep you up to date when it goes live.

But keep in mind, there's a big caveat: As explained in #39 gtt doesn't sync the date to GitLab (because there's no way to do this via an API call at the moment). The date of your time record on GitLab matches the current date when you ran the sync command and it matches GitLabs timezone settings. You're local timestamps stay local and are only used to calculate the duration at the moment (and for the log command).

@kriskbx
Copy link
Owner

kriskbx commented May 12, 2018

I just released 1.7.5 which includes the ability to specify timezones in your config file.

@kriskbx kriskbx closed this as completed May 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants