We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Copied from moment/moment-timezone#17
If you look here moment/moment.js Line 1266 in ae34b81 var diff = this.diff(moment().startOf('day'), 'days', true), 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.
If you look here
moment/moment.js
Line 1266 in ae34b81
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.
The text was updated successfully, but these errors were encountered:
Respect timezone settings for .calendar() format
8febb05
Fixes moment#946
Successfully merging a pull request may close this issue.
Copied from moment/moment-timezone#17
The text was updated successfully, but these errors were encountered: