simple-node-logger
simple-node-logger copied to clipboard
Is it possible to set the timezone?
The server has the time zone UTC but I want to log GMT-3 or GMT-6 is it possible to do that?
Thanks!
Probably yes, https://momentjs.com/docs/#/displaying/format/
Sorry, but that isn't the solution, in moment.js you have to do:
moment(1369266934311).utcOffset(60).format('YYYY-MM-DD HH:mm') moment(1369266934311).utcOffset('+0100').format('YYYY-MM-DD HH:mm')
to change the timezone, credits: https://stackoverflow.com/a/16703551/244930
but the logger only support the format string
Thank you