pinojs / pino-pretty

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

How to get EST time using pino-pretty #406

Closed SudhirRamaniOD closed 1 year ago

SudhirRamaniOD commented 1 year ago

I am trying with translateTime: 'EST:DD-MM-YYYY HH:MM:SS' but still getting UTC time only. Is there any workaround available in pino to get EST time?

mcollina commented 1 year ago

THat's not supported by dateformat: https://www.npmjs.com/package/dateformat. Only UTC: prefix is supported.

SudhirRamaniOD commented 1 year ago

Is there any way around to get the EST time in pino?

jsumners commented 1 year ago

https://getpino.io/#/docs/api?id=pino-stdtimefunctions