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 Works Locally, Not in Production #639
Comments
@mackenzienolan check please:
|
Version: 0.5.14 Locally Production |
I have been able to get it where it prints out correctly, except that it changes the offset and the time.
I've created a hack for now, but if anyone knows what I'm doing wrong that would be extremely helpful. |
I'm having the same problem. I've tracked down my issue to using moment@0.5.13 but there is a dependency that is using moment@0.5.25. Both use the same moment@2.18.0. So when the dependency is loaded moment.tz is changed to be the 0.5.25 version. To reproduce
|
For the same code segment Am using version 0.5.28 any solution or workaround is available?? |
This looks like a potential problem with dependency chains, which is very hard to debug. I suggest following the advice at #982 (comment) to resolve conflicts in dependency versions. |
For some reason when testing locally the below code returns correctly, however on dev or prod it returns as GMT.
Locally
moment().tz("America/Toronto").format() // 2018-06-22 00:00:00-04
Production
moment().tz("America/Toronto").format() // 2018-06-22 00:00:00+00
Does anyone know why this may be occurring?
The text was updated successfully, but these errors were encountered: