Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixed the GMT+H and GMT-H entries in tz_database.hrl, in which the UTC offset was too small by a factor of 60. The tz-erl script had a bug in the
offset_minutes
function where it treated an offset that was a plain integer as the offset in minutes instead of hours. (Most entries use "HH:MM" or "0".)Update
fmt_shift
to handle an argument of0
. This is necessary fortz_shift/3
, becausetz_shift(_, "UTC")
return0
instead of{+, 0, 0}
, and this can cause a problem when usingtz_shift/3
to convert to or from UTC.In tz-erl, made the future date test in zone lines more precise.
In tz-erl, better documented the problem with zone that begin or end using DST in the current year. (But did not solve the problem. This happened in Uruguay in 2015.)