URL:
<https://savannah.gnu.org/bugs/?60952>
Summary: NSTimeZone fail to deal with tzfile v2+
Project: GNUstep
Submitted by: None
Submitted on: Wed 21 Jul 2021 03:43:09 PM UTC
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
RFC 8536 defines 3 formats for tzfile. NSTimeZone only knows about version 1,
and reports bad data without error when dealing with version 2+. I tracked
down this patch because I discovered SOGo have been wrecking gmtoffset for
years.
Attached is a patch that implements enough of version 2 so that NSTimeZone can
report correct gmtoffset with a version 2+.
I had to change trans from int32_t to int64_t in the interface. I guess it
could break other code. If that is better, I can refactor the code to ignore
transitions that do not fit in in32_t.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Wed 21 Jul 2021 03:43:09 PM UTC Name: tzfile2.patch Size: 4KiB By:
None
<http://savannah.gnu.org/bugs/download.php?file_id=51678>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60952>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/