[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: Emmanuel Dreyfus
Subject: [bug #60952] NSTimeZone fail to deal with tzfile v2+
Date: Sat, 24 Jul 2021 21:21:40 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Firefox/60.0

Follow-up Comment #7, bug #60952 (project gnustep):

[comment #5 comment #5:]
> I think using public domain code is fine, as long as we include comments
around it to make it clear that it *is* public domain (and where it came

How do you want v2+ TZstring-based transitions to be implemented? 

We can generate transitions based on the TZstring up to a given date in the
future. The advantage is that there is no need to change the code that uses
chop to find a transition. But it will waste memory

The other approach is adding a wrapper function around chop() calls to check
is when is after the last transition, and on in this case give the answer
based on the TZstring. But if we do that, the date returned by
timeZoneDetailForDate() will be of little sense to a consumer unaware of v2+



Reply to this item at:


  Message sent via Savannah

reply via email to

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