Skip to main content
The 2024 Developer Survey results are live! See the results
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