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

Unexpected interpretation of timezone offset #124

Open
pelson opened this issue Nov 10, 2024 · 0 comments
Open

Unexpected interpretation of timezone offset #124

pelson opened this issue Nov 10, 2024 · 0 comments

Comments

@pelson
Copy link

pelson commented Nov 10, 2024

It seems that if you specify a timezone offset of more than 10 hours as an integer, it is split with the tens being treated as the hour, and the ones being treated as the minutes:

$ udunits2 -H 's since 2020-01-01 +11' -W 's since 2020-01-01 01:01'
    1 s since 2020-01-01 +11 = 1 (s since 2020-01-01 01:01)
    x/(s since 2020-01-01 01:01) = (x/(s since 2020-01-01 +11))

This is a surprising interpretation - I would have expected the offset to be 11 hours, not 1 hour and 1 minute.

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