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
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.
The text was updated successfully, but these errors were encountered:
I'm considering removing the link to just the library on the download section and having the output from the data builder include both the library and the data. This way, you would always have some data loaded.
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.
Instead, this should error with something like:
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.
The text was updated successfully, but these errors were encountered: