[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 |
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/
- [bug #60952] NSTimeZone fail to deal with tzfile v2+,
anonymous <=
- [bug #60952] NSTimeZone fail to deal with tzfile v2+, Richard Frith-Macdonald, 2021/07/22
- [bug #60952] NSTimeZone fail to deal with tzfile v2+, Emmanuel Dreyfus, 2021/07/22
- [bug #60952] NSTimeZone fail to deal with tzfile v2+, Emmanuel Dreyfus, 2021/07/22
- [bug #60952] NSTimeZone fail to deal with tzfile v2+, Richard Frith-Macdonald, 2021/07/23
- [bug #60952] NSTimeZone fail to deal with tzfile v2+, Emmanuel Dreyfus, 2021/07/23
- [bug #60952] NSTimeZone fail to deal with tzfile v2+, Richard Frith-Macdonald, 2021/07/24
- [bug #60952] NSTimeZone fail to deal with tzfile v2+, Emmanuel Dreyfus, 2021/07/24
- [bug #60952] NSTimeZone fail to deal with tzfile v2+, Emmanuel Dreyfus, 2021/07/24
- [bug #60952] NSTimeZone fail to deal with tzfile v2+, Richard Frith-Macdonald, 2021/07/25
- [bug #60952] NSTimeZone fail to deal with tzfile v2+, Richard Frith-Macdonald, 2021/07/25