Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Mar 1998 16:21:20 +0400
From:      =?koi8-r?B?4c7E0sXKIP7F0s7P1w==?= <ache@nagual.pp.ru>
To:        Wolfgang Helbig <helbig@Informatik.BA-Stuttgart.DE>, freebsd-bugs@FreeBSD.ORG
Cc:        bde@FreeBSD.ORG
Subject:   Re: bin/6164
Message-ID:  <19980330162120.01151@nagual.pp.ru>
In-Reply-To: <19980330161329.17370@nagual.pp.ru>; from ache@nagual.pp.ru on Mon, Mar 30, 1998 at 04:13:29PM %2B0400
References:  <199803300920.BAA08095@freefall.freebsd.org> <199803301102.NAA22390@rvc1.informatik.ba-stuttgart.de> <19980330161329.17370@nagual.pp.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Mar 30, 1998 at 04:13:29PM +0400, Андрей Чернов wrote:
> On Mon, Mar 30, 1998 at 01:02:27PM +0200, Wolfgang Helbig wrote:
> > A fix is to use local.tm_gmtoff to get UTC-time from local time, as in
> > this diff:
> 
> I doubt we can trust tm_gmtoff since it changes over timezone
> switch time. mktime used just to get correct (changed) tm_gmtoff

Maybe alternate variant will be 1..6 hours loop increasing hours until
mktime(&utc) will stop return -1 ...

-- 
Andrey A. Chernov
http://www.nagual.pp.ru/~ache/
MTH/SH/HE S-- W-- N+ PEC>+ D A a++ C G>+ QH+(++) 666+>++ Y

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980330162120.01151>