-
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
.format('z') doesn't work for 0.5.13 if other dependency uses 0.5.25 #749
Comments
Have found a similar issue when running in Node environment. The problem started from version
when bumping the version to
The change, I suspect, that has affected the behavior is this commit - 6b7b558 I wasn't successful to reproduce it in a clean environment though (without other dependencies), but it has happened in Ghost core code after merging this version bump - TryGhost/Ghost#10837, build that failed is https://travis-ci.org/TryGhost/Ghost/jobs/553428813 and the test that is failing is this one - https://github.com/TryGhost/Ghost/blob/cf499c3/core/test/regression/importer/importer_spec.js#L142. Think it has to do with having |
refs TryGhost#10837 - Detailed issue description is provided here moment/moment-timezone#749 (comment)
When you use a Date to feed to moment, it can't possibly know which timezone you're in. I understand the behavior changed, but you don't get any guarantees when you use a |
We are currently using moment-timezone@0.5.13 but we have a dependency on 0.5.25.
The two do not play nicely together.
The .format('z') gives "UTC" when using the @0.5.13 version after the 0.5.25 version has been required. Anything <=0.5.23 seems to have this problem.
To reproduce
The yarn.lock
The text was updated successfully, but these errors were encountered: