Moment: Brazil Locale DST Error

Created on 4 Nov 2019  ·  9Comments  ·  Source: moment/moment

Describe the bug

In Brazil location we have error of an hour early, because of the daylight saving time pointed by monet.js. We are not using 'daylight saving time' (+1 hour) this year.

All 9 comments

It's happening on some windows machines: when we call new Date() it returns the time an hour ahead despite our systemtime Get-Date;

Its down to brazil decided not to follow daylight saving time from this year onwards.

So for all conversions with brazil time zone given in the time string, the result comes with +1 hour of actual time.

You need to update moment-timestamp, the brazilian daylight savetime is updated there.

@hugoeustaquio how can i do it ? where should i do the update ?

Hello Guys! I'm having same problem that @luan1992 and @safeerjavidh-zarget. It's not only on Windows machines. Same problem on mac. Any idea?

Solved! Moment Team fix It!

Nice work, Moment Team!

@luan1992 did they release any patch or something ? how do i get the latest fix from moment team ?

@safeerjavidh-zarget I do not know, just happen happened.
moment

Was this page helpful?
0 / 5 - 0 ratings