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

Diff does not take into account time zone #233

Open
rocketraman opened this issue Mar 15, 2018 · 0 comments
Open

Diff does not take into account time zone #233

rocketraman opened this issue Mar 15, 2018 · 0 comments

Comments

@rocketraman
Copy link

The diff function does not take into account the time zone. Reproduction recipe:

let range = moment.parseZoneRange('2010-03-31T20:00:00-04:00/2010-04-30T20:00:00-04:00')
range.end.diff(range.start, 'months') // 0
range.end.utc().diff(range.start.utc(), 'months') // 1
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

1 participant