[16976] in Kerberos_V5_Development
RE: prevalence of "right" time zones without timegm()?
daemon@ATHENA.MIT.EDU (Andrew Bartlett)
Wed Jul 6 22:12:02 2011
From: Andrew Bartlett <abartlet@samba.org>
To: Dave Daugherty <dave.daugherty@centrify.com>
Date: Thu, 07 Jul 2011 12:11:55 +1000
In-Reply-To: <6E90015C52F4FA478E0E30CD3BC6479837D5E26281@exch-07.centrify.com>
Message-ID: <1310004717.6247.17.camel@ruth>
Mime-Version: 1.0
Cc: tridge@samba.org, "krbdev@mit.edu" <krbdev@mit.edu>, Tom Yu <tlyu@mit.edu>,
lha@samba.org
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krbdev-bounces@mit.edu
On Tue, 2011-07-05 at 23:03 -0700, Dave Daugherty wrote:
> Hi Tom,
>
> I am one of the people who brought up this issue. Our customer solved the problem by configuring for standard time zone, hence the urgency was greatly reduced to implement a code fix - so it got pushed to the back of the to-do list.
>
> We support over 200 different variants of Unix with 1000's of installations and have only run across this problem once so far.
>
> I am pretty sure the Centos version our customer was using already supports timegm. I am having our OEM customer confirm this, and anyway it could be installed if necessary. I have not tested timgem on any system to confirm that it includes the leap seconds if gmtime does.
This does really happen in the real world, and is a nightmare to track
down (I spent hours on it). We (Samba Team) found it out via Heimdal,
and Fedora 13 or 14 (current as of 2010-09) systems in Seattle time zone
(while at a Microsoft interop :-)
The eventual solution was that Heimdal implements both directions of the
gmtime() and timegm() manually, without regard to the leap second
database. From our experience I strongly recommend MIT chooses to do
the same.
Andrew Bartlett
--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
_______________________________________________
krbdev mailing list krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev