-
Notifications
You must be signed in to change notification settings - Fork 838
Closed
Labels
Milestone
Description
Currently, if you forget to load the time zone data, or you typo or make up a zone that doesn't exist, you get the local time.
moment().tz("Foo/Bar").format()
Instead, this should error with something like:
The zone "Foo/Bar" could not be found. Did you forget to load the time zone data file?
Or something like that.
This will improve the dev experience, as several questions get posted on StackOverflow where the only issue is that they didn't see or understand the instructions for loading the tz data.