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

Prevent error from being thrown in IANAZone.offset #906

Merged
merged 1 commit into from
May 8, 2021

Conversation

gumgl
Copy link
Contributor

@gumgl gumgl commented Mar 23, 2021

To fix bug #905.

I confirmed the fix in the browser (local build):

let d = luxon.DateTime.local();
let dz = d.setZone("America/Vancouver");

d.plus({seconds: 12345678901234567890});
DateTime {ts: 1.2345678902851053e+22, _zone: LocalZone, loc: Locale, invalid: Invalid, weekData: null, …}

dz.plus({seconds: 12345678901234567890});
DateTime {ts: 1.2345678902851053e+22, _zone: IANAZone, loc: Locale, invalid: Invalid, weekData: null, …}

@gumgl gumgl mentioned this pull request Mar 23, 2021
@icambron icambron merged commit 34add62 into moment:master May 8, 2021
@louisbuchbinder
Copy link

Thank you for your work @gumgl

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

Successfully merging this pull request may close these issues.

None yet

3 participants