Javascript timezone error between February 9, 1942 - September 30, 1945

I have a date from January 13, 1943 at 4:00 UTC. It converted Javascript on January 12, 1943 at 11:00 Eastern Standard Time (GMT-500). However, according to the Daily Time Savings History for the USA, the period from February 9, 1942 to September 30, 1945 was constantly DST. My server processes this correct insertion of the date into the database using GMT-400 or 4:00 AM UTC. However, it seems that Javascript assumes that the dates between November 1 and March 8 are always GMT-500 regardless of the year. And therefore, we get a rounding error on certain Dates falling between these periods. Can anyone confirm that this is a Javascript watch issue?

+7
javascript datetime dst
source share

No one has answered this question yet.

See similar questions:

nineteen
JavaScript time zone is invalid for daylight saving time rules

or similar:

7649
How do JavaScript locks work?
7494
How to remove a specific element from an array in JavaScript?
7432
How to check if a string contains a substring in JavaScript?
7287
What does use strict do in JavaScript, and what are the reasons for this?
5722
How to remove a property from a JavaScript object?
5670
Which operator is equal (== vs ===) should be used in comparing JavaScript?
5101
What is the most efficient way to deeply clone an object in JavaScript?
4829
How to include a javascript file in another javascript file?
4086
What is the difference between using "let" and "var"?
3796
How do you get the timestamp in JavaScript?

All Articles