Timeline for Get timezone offset from timezone name using Javascript
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 22, 2023 at 14:28 | comment | added | some |
I have 2 suggestions: 1. use Date.parse() instead of new Date() . . 2. Add the string ' Z' to the output of toLocaleString() and the function gives different offsets depending on if DST is active or not: Date.parse(date.toLocaleString(systemTimeZone, { timeZone }) + ' Z')
|
|
May 24, 2023 at 9:52 | vote | accept | Hardik Sondagar | ||
Jul 30, 2021 at 15:10 | history | answered | Mr. Polywhirl | CC BY-SA 4.0 |