You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 27, 2020. It is now read-only.
This line fails because the IE11 Date constructor doesn't like the "from" or "to" formats found in the timezone data. We only see a problem when there is more than one entry in metaNameData since otherwise it picks it automatically. For example I tried "America/Anchorage".
Full command line example:
new Date().toLocaleString("en-US",{timeZoneName: "short", timeZone: "America/Anchorage"})
Try this on the command line and see it fail in IE but work elsewhere:
new Date("1983-11-30 09:00-08:00")
Now replace the space with "T" and it works.
new Date("1983-11-30T09:00-08:00")
So that's the fix. Replace space with "T".
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
date-time-format-timezone/src/code/lookup-utill.js
Line 64 in 1501228
This line fails because the IE11 Date constructor doesn't like the "from" or "to" formats found in the timezone data. We only see a problem when there is more than one entry in metaNameData since otherwise it picks it automatically. For example I tried "America/Anchorage".
Full command line example:
new Date().toLocaleString("en-US",{timeZoneName: "short", timeZone: "America/Anchorage"})
Try this on the command line and see it fail in IE but work elsewhere:
new Date("1983-11-30 09:00-08:00")
Now replace the space with "T" and it works.
new Date("1983-11-30T09:00-08:00")
So that's the fix. Replace space with "T".
The text was updated successfully, but these errors were encountered: