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

Fix for timezones with minute Offsets >0 #1599

Merged
merged 1 commit into from Feb 18, 2020
Merged

Fix for timezones with minute Offsets >0 #1599

merged 1 commit into from Feb 18, 2020

Conversation

dcRUSTy
Copy link
Contributor

@dcRUSTy dcRUSTy commented Jan 16, 2020

For example Indian Standard Timezone IST (https://en.wikipedia.org/wiki/Indian_Standard_Time) +05:30 or 330 minutes the output becomes +5.5:30 but as per ISO 8601 standard it should be +05:30. hourOffset should be "05" and minute offset should be "30" but currently hourOffset is set to "5.5"

…ible by 60.

For Indian Timezone +05:30 or 330 minutes the output becomes +5.5:30 but as per ISO 8601 standard it should be +05:30. hourOffset should be "05" and minute offset should be "30" but currently hourOffset is set to "5.5"
@dcRUSTy
Copy link
Contributor Author

dcRUSTy commented Jan 16, 2020

Screenshot 2020-01-16 at 8 52 48 PM

it should be "05" and not "5.5"

Copy link
Contributor

@imballinst imballinst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, right! I completely missed the non-standard time zones. Thank you for fixing this!

@dcRUSTy dcRUSTy removed the request for review from kossnocorp February 3, 2020 01:43
@dcRUSTy
Copy link
Contributor Author

dcRUSTy commented Feb 3, 2020

Still not merged?

Copy link
Member

@kossnocorp kossnocorp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's good to go. Thank you a lot! I'll merge and ship it soon.

@mtkopone
Copy link

mtkopone commented Feb 6, 2020

I found this PR only after also implementing the fix. If you want a test that actually tests the output to go with this, feel free to use: mtkopone@c0f4396

@kossnocorp
Copy link
Member

@mtkopone that's perfect, thank you a lot for this!

@kossnocorp
Copy link
Member

I was overwhelmed lately, thank you for your patience! The fix was released with 2.10.0.

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

Successfully merging this pull request may close these issues.

None yet

4 participants