Skip to content
This repository has been archived by the owner on Jun 27, 2020. It is now read-only.

Error when getting "long" name for timeZone Etc/UTC #46

Open
dcRUSTy opened this issue May 4, 2020 · 0 comments
Open

Error when getting "long" name for timeZone Etc/UTC #46

dcRUSTy opened this issue May 4, 2020 · 0 comments

Comments

@dcRUSTy
Copy link

dcRUSTy commented May 4, 2020

new Intl.DateTimeFormat('en', {
timeZone: 'Etc/UTC',
timeZoneName:'long',
year: 'numeric',
month: 'numeric',
day: 'numeric',
hour: 'numeric',
minute: 'numeric',
}).format(new Date())

throws error "Error: unsupported value "long" for timeZone Etc/UTC. requires locale data for en-US" in IE 11

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant