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

Half-hour negative timezone formatting #724

Open
vinibrsl opened this issue Sep 15, 2022 · 0 comments
Open

Half-hour negative timezone formatting #724

vinibrsl opened this issue Sep 15, 2022 · 0 comments

Comments

@vinibrsl
Copy link

vinibrsl commented Sep 15, 2022

Steps to reproduce

Call Timex.TimezoneInfo.format_offset/1 with a half-hour negative timezone, e.g. UTC-9:30.

%Timex.TimezoneInfo{abbreviation: "-0930", full_name: "Pacific/Marquesas", offset_std: 0, offset_utc: -34200}
|> Timex.TimezoneInfo.format_offset()
# "-09:-30:00"

Description of issue

Formatting half-hour negative timezones returns "-09:-30:00", and I was expecting "-09:30:00", without that additional minute minus sign. I may be wrong, but is that the conventional formatting for offsets like that?

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