[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: Thu, 29 Jul 2021 09:06:05 -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 #10, bug #60952 (project gnustep):

A quick update, I got success with the graft of NetBSD libc's localtime.c in
NSTimeZone. I do not post a patch for now because the code is awful, but at
least it produces the correct result:

TZ Europe/Paris
1981-01-16 TZ offset = 3600 (expects 3600)
1981-08-16 TZ offset = 7200 (expects 7200)
2021-01-16 TZ offset = 3600 (expects 3600)
2021-08-16 TZ offset = 7200 (expects 7200)

While there it is tempting to toss the part of NSTimeZone that deals with
transitions, since it is handled by the imported code.


Reply to this item at:


  Message sent via Savannah

reply via email to

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