Caută ajutor

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Acest fir de discuție a fost arhivat. Adresează o întrebare nouă dacă ai nevoie de ajutor.

Date shift on daylight saving in Brasilian local time with date.toDateString()

  • Niciun răspuns
  • 1 are această problemă
  • 2 vizualizări
more options

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 de SteSee