pinojs/pino-pretty

Time zone does not match

userVF opened this issue · 2 comments

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

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).

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