Skip to content Skip to sidebar Skip to footer

The Brasilia Summer Time 2019 At Javascript

I have my datacenter in Brazil and all my JS applications have a Timezone problem because at 2019 the daylight save hour is not enable and the JS Server (NodeJS) understand the Bra

Solution 1:

I believe you'll get the correct timezone offset if you upgrade your version of Node.js, it has been updated to reflect the timezone changes: https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V12.md#12.13.1.

I believe Node 12.13.1 will show the correct UTC offset (-3 hours), e.g. in node 12.13.1 if I do:

console.log(newDate().toString());

I get

'Mon Dec 02 2019 11:28:26 GMT-0300 (Brasilia Standard Time)'

Post a Comment for "The Brasilia Summer Time 2019 At Javascript"