-
Notifications
You must be signed in to change notification settings - Fork 837
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
Cannot set default timezone #892
Comments
same problem |
I can't reproduce with latest moment + moment-timezone. What could be happening is that you have different modules with different versions of moment, and that can cause big trouble (i.e require('moment') uses one version of moment, so it has it's global state, but require('moment-timezone') depends on another version of moment, with another global state, and when you set the default timezone it applies to one version of moment and not the other. |
We could possibly switch to |
can you assign this project to me |
Can't set moment.tz.setDefault
require('moment').version // 2.24.0
require('moment') === require('moment-timezone') // true
require('moment').version // 2.25.3
require('moment') === require('moment-timezone') // false
require('moment').version // 2.26.0
require('moment') === require('moment-timezone') // false
require('moment').version // 2.27.0
require('moment') === require('moment-timezone') // false
Since version 2.24.0 we cannot set timezones.
Hence, if I do:
it will reflect on moment for v2.24.0, but not for v2.25.0>.
Followup of moment/moment#4236
The text was updated successfully, but these errors were encountered: