-
Notifications
You must be signed in to change notification settings - Fork 835
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.tz(<moment instance with tz>, <same tz>) returns wrong result #135
Comments
I am experiencing a similar issue that may be related to this one. |
@zgmnkv @CarmonColvin The issue here is with the moment constructor itself, not an issue with moment-timezone.
Can one of you raise this issue on https://github.com/moment/moment, and close this one as thats the place this needs to be fixed in. |
@kashifshamaz21 why do you think it's a bug with moment constructor? For me it seems fine. |
@zgmnkv Well, as i mentioned in my earlier comment, creating a moment for
|
@kashifshamaz21 In js months start from 0 |
@zgmnkv uh, my bad. Sorry for all the confusion, didn't read thru the array constructor note which mentions about the zero-indexing. Okay, digging more into this. |
@timrwood Any idea on what could be going wrong here? Looks like something to do with cloning of moment. |
I think the issue is here. We need to add another case to make sure things that moments that are passed to |
#169 should solve this issue. |
http://jsfiddle.net/bmh34p36/1/
The text was updated successfully, but these errors were encountered: