[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #60952] NSTimeZone fail to deal with tzfile v2+

From: anonymous
Subject: [bug #60952] NSTimeZone fail to deal with tzfile v2+
Date: Wed, 21 Jul 2021 11:43:11 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Firefox/60.0


                 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



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

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:



Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]