Date shift on daylight saving in Brasilian local time with date.toDateString()
Hello, on Oct 15, 2017 in Brasilia a daylight saving hour is applied.
GIVEN: the Maschine is set to UTC-3 Brasilian timezone
WHEN executing Javascript: new Date ("Oct 15, 2017 12:00:00 AM").toDateString()
THEN: Firefox is falsely returning: Sat Oct 14 2017
EXPECTED is: "Sun Oct 15 2017"
How can I fix this? Thanks, Stefan
Hello,
on Oct 15, 2017 in Brasilia a daylight saving hour is applied.
'''GIVEN:'''
the Maschine is set to UTC-3 Brasilian timezone
'''WHEN executing Javascript: '''
new Date ("Oct 15, 2017 12:00:00 AM").toDateString()
'''THEN: Firefox is falsely returning:'''
Sat Oct 14 2017
'''EXPECTED is:'''
"Sun Oct 15 2017"
How can I fix this?
Thanks, Stefan
Modificat în