-
Notifications
You must be signed in to change notification settings - Fork 156
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
How to set time zone offset? #97
Comments
I have this same issue. Looking through the issues list now to see if it's been solved |
@light0x00 I also use pino with pino-pretty. The o mask pattern just prints out the current offset. It doesn't set an offset and change the output to local time if it was UTC. I wanted the log to display the time with local time zone. My app runs in docker so I achieved this with pino-pretty by doing the following:
The timestamp entry ended up looking like this afterwards: |
Adding |
ahhh, I know this is a naive question. but different date library has different rule, I usually use
yyyy-MM-dd'T'HH:mm:ss+08
in other date libraries, but it doesn't work for this library . I'm a little confused.i use a logging library named pino, It uses this library, and time zone is UTC+0, and I want to change it.
So i try to find answer in your document, and I found the following Setting, it seems to be what i want, but I don't know how to use it.
What should I do?
The text was updated successfully, but these errors were encountered: