You are reading a single comment by @bq and its replies. Click here to read the full conversation.
  • Why do you think this doesn't happen?
    It does. It's not an assumption. I wrote the JSFiddle code to prove that it does.

    Did you not see that with your browser? It did it in Chrome on Windows 7. If you didn't see that then check your timezone and DST settings.
    I instantiated two dates, one for a date in BST and one for a date in GMT and it correctly converted to UTC for each.

    If you instantiate a JS Date object with a new Date(year, month, day, hours, minutes) then it will use your local OS's timezone and DST information.

About

Avatar for bq @bq started