[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems with kadmin date parsing in heimdal 0.6.1 on NetBSD
On Fri, 07 May 2004 21:12, Johan Danielsson wrote:
> > (b) tm2time() should set tm.tm_isdst to 0 which I think would make
> > mktime() ignore daylight savings time.
>
> More like it, but how about this:
>
> --- tm2time.c 1999/12/02 16:58:53 1.7
> +++ tm2time.c 2004/05/07 09:09:33
> @@ -51,7 +51,7 @@
> {
> time_t t;
>
> - tm.tm_isdst = -1;
> + tm.tm_isdst = local ? -1 : 0;
>
> t = mktime (&tm);
Looks good.
cheers
mark