1
I set my Timezone in the nodejs for America/Sao_paulo. But it does not respect the tables of the operating system.
I use Ubuntu 18.04 LTS + Nodejs V10. The method getTimezoneOffset
of Date
me returns offset 120 (-2) instead of 180 (-3). How can I fix the problem and do the method getTimeZoneOffset
respect the S.O table? Or how can I be setting Timezone manually until I solve the problem.
Example teste.js
:
process.env.TZ = 'America/Sao_Paulo';
console.log(new Date().getTimezoneOffset()); // retorna 120 não 180
Node: V10.16.0
As the problem was found, the conversation here was moved to the chat
– Bacco