Skip to content
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

.calendar() does not respect timezone information #17

Closed
Raynos opened this issue Jul 23, 2013 · 1 comment
Closed

.calendar() does not respect timezone information #17

Raynos opened this issue Jul 23, 2013 · 1 comment

Comments

@Raynos
Copy link

Raynos commented Jul 23, 2013

If you look here https://github.com/moment/moment/blob/ae34b8100eb925832c7c0bc729ba0485de77bde6/moment.js#L1266

We are creating a fresh moment with the no timezone information so the calendar() method doesn't calculate the day diff correctly.

I've manually fixed this by inlining the body of the method into my code.

@timrwood
Copy link
Member

You are right.

I filed an issue at moment/moment#946 to track this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants