3

I want to create the following Date object:

new Date("1753-01-01T04:00:00+01:00")

The date object then contains "Mon Jan 01 1753 04:05:21 GMT+0105".

Why do Chrome and Firefox add five minutes to the timezone offset?

Tom
  • 749
  • 7
  • 13
  • 1
    timezone? here I get: `Mon Jan 01 1753 03:49:56 GMT+0049 (Ora standard dell’Europa centrale)` edit: `here` would be Italy – GrafiCode Sep 03 '19 at 14:23
  • @Tom Where do you live? – str Sep 03 '19 at 14:26
  • I just ran the same code on w3schools and got "Mon Jan 01 1753 02:58:45 GMT-0001" just by copying your code exactly. The browser is Google Chrome. – SPlatten Sep 03 '19 at 14:27
  • I live in Austria, so I should have the same local timezone as GrafiCode in Italy, but nevertheless he gets a different result. – Tom Sep 03 '19 at 14:31
  • I did not check for Austria specifically, but this is most probably the same issue as for the linked duplicates. – str Sep 03 '19 at 14:32
  • I have checked using moment.js as well and it gives me the same result as @GrafiCode – Gabriele Magno Sep 03 '19 at 14:33
  • @str: Thanks, yes I assume it's the same problem. – Tom Sep 03 '19 at 15:10

0 Answers0