pinojs / pino-pretty

🌲Basic prettifier for Pino log lines
MIT License
1.27k stars 150 forks source link

[Request] Allow overriding timezone #469

Open alex-statsig opened 1 year ago

alex-statsig commented 1 year ago

My application sets the environment variable (TZ="UTC") to override the timezone to UTC so that local development time behaves similar to our production. I would like to still show log times in our local timezones for development though (PST). Could an option be added to allow specifying a certain timezone (rather than only system or UTC)?

mcollina commented 1 year ago

Thanks for reporting! Would you like to send a Pull Request to address this issue? Remember to add unit tests.

alex-statsig commented 1 year ago

Thanks for reporting! Would you like to send a Pull Request to address this issue? Remember to add unit tests.

Sure, I'll take a look!