pinojs / pino-pretty

🌲Basic prettifier for Pino log lines
MIT License
1.22k stars 147 forks source link

Time zone does not match #502

Closed userVF closed 5 months ago

userVF commented 5 months ago

Hi All!

Time zone in log does not match with system one.

+6 in log: image

+5 in system: image

js code: image

Tested on Fedora 39, AlmaLinux 9, CentOS 8

mcollina commented 5 months ago

I have absolutely no clue on why. On my system, things are lined up. I'm sorry I can't be of help, if you would like to send a PR to fix this, it would be highly welcomed.

(I'd recommend checking what the dateformat library does).

userVF commented 5 months ago

Thanks for answer! I noticed the mismatch happens if tzdata is updated after nodejs is installed already. Probably, it is not issue of pino.