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

formatRFC3339: fix non standard time zones #1912

Conversation

imballinst
Copy link
Contributor

Fixes #1911. This PR floors the hourOffset in formatRFC3339, so for non-standard time zones, e.g. for IST, it becomes 05:30 instead of 5.5:30.

This fix is similar to #1599, with the addition of the formatRFC3339 test to the scripts/test/formatISO.sh. If the name of the file needs to be changed, e.g. to format.sh (since it now contains both formatISO and formatRFC3339), please let me know!

Signed-off-by: Try Ajitiono <ballinst@gmail.com>
Signed-off-by: Try Ajitiono <ballinst@gmail.com>
Signed-off-by: Try Ajitiono <ballinst@gmail.com>
@imballinst imballinst self-assigned this Aug 22, 2020
Signed-off-by: Try Ajitiono <ballinst@gmail.com>
@piotrl
Copy link
Contributor

piotrl commented Aug 22, 2020

Hi, it's duplicate of PR #1890 ;)

@imballinst
Copy link
Contributor Author

@piotrl oh, apologies! I didn't check the list of PRs first.

I'll assign you to that issue instead and close this one. Thanks for working on that PR!

@imballinst imballinst closed this Aug 23, 2020
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.

Date format generated by formatRFC3339 is incompatible with Golang standard lib RFC3339!
2 participants