-
Notifications
You must be signed in to change notification settings - Fork 838
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moment Timezone has no data for... #193
Comments
Closing for now. If you can demonstrate it failing, please do and I'll reopen. Thanks. |
FWIW, I recently went through an upgrade from moment 2.4.0 > 2.10.2 + moment-timezone 0.3.1 (where timezone + tzdata are now combined.) I was able to reproduce this error, but only because I was loading Removing the first instance, leaving only the new combined version resolved this for me. Just mentioning it here incase someone else runs into this issue, make sure you're not unnecessarily redeclaring moment-timezone. |
Yes, I've heard of this a few times, such as here. We should probably guard against this somehow. |
i've just started using moment-timezone 0.3.1 and did npm install and bower install. (i'm also using moment 2.9.0)
I'm trying to convert a date to a different timezone using
moment.tz(date, timezone).format();
This error comes up
Moment Timezone has no data for America/New_York. See http://momentjs.com/timezone/docs/#/data-loading/.
I've gone to that page and I get how you can add timezones. But I already have that timezone info in the data folder with both packed and unpacked json files. So why does this message show up? Do I have to manually add what timezones I want to use?
The text was updated successfully, but these errors were encountered: