We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is there any option to log with UTC instead of the location time zone?
UTC
I found a time.Now() in https://github.com/hashicorp/go-hclog/blob/master/intlogger.go#L155, but couldn't find anything else
time.Now()
The text was updated successfully, but these errors were encountered:
There isn't. If you set the TZ env var to UTC when the program starts, then time.Now() should return UTC timestamps.
Sorry, something went wrong.
@evanphx Thanks for your quick response. Unfortunately, relying on the TZ env var being set does not work for me.
TZ
I raised a PR at #104
Can somebody take a look whether it can be merged in?
0cd5096
No branches or pull requests
Is there any option to log with
UTC
instead of the location time zone?I found a
time.Now()
in https://github.com/hashicorp/go-hclog/blob/master/intlogger.go#L155, but couldn't find anything elseThe text was updated successfully, but these errors were encountered: