[17026] in Kerberos_V5_Development

home help back first fref pref prev next nref lref last post

Re: prevalence of "right" time zones without timegm()?

daemon@ATHENA.MIT.EDU (Henry B. Hotz)
Tue Jul 12 17:07:23 2011

Mime-Version: 1.0 (Apple Message framework v1084)
From: "Henry B. Hotz" <hotz@jpl.nasa.gov>
In-Reply-To: <mailman.60355.1309908008.7171.krbdev@mit.edu>
Date: Tue, 12 Jul 2011 14:07:15 -0700
Message-Id: <15DD9ABA-47AE-4427-B969-0A95D4166756@jpl.nasa.gov>
To: "krbdev@mit.edu" <krbdev@mit.edu>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krbdev-bounces@mit.edu


On Jul 5, 2011, at 4:20 PM, krbdev-request@mit.edu wrote:

> Date: Tue, 05 Jul 2011 15:18:59 -0400
> From: Tom Yu <tlyu@MIT.EDU>
> Subject: prevalence of "right" time zones without timegm()?
> To: krbdev@MIT.EDU
> Message-ID: <ldv39ikpmcc.fsf@cathode-dark-space.mit.edu>
> Content-Type: text/plain; charset=us-ascii
> 
> Does anyone configure a "right" (leap-second-aware) time zone on a
> system that lacks timegm()?  (timegm() is the non-standard inverse
> function of gmtime().)  I'm trying to address the problem where
> conversion to formatted ASN.1 GeneralizedTime is sometimes
> non-invertible, causing failures that are difficult to debug.
> 
> I propose that we implement krb5int_gmt_mktime() using timegm() on
> systems that have it, using our existing custom implementation if
> timegm() doesn't exist.

How does it compare to mktime()/tzset() with the right TZ?

Or is this what you're putting in your custom krb5int_gmt_mktime()?

------------------------------------------------------
The opinions expressed in this message are mine,
not those of Caltech, JPL, NASA, or the US Government.
Henry.B.Hotz@jpl.nasa.gov, or hbhotz@oxy.edu



_______________________________________________
krbdev mailing list             krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev

home help back first fref pref prev next nref lref last post