From owner-freebsd-bugs Mon Mar 30 04:21:44 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA25345 for freebsd-bugs-outgoing; Mon, 30 Mar 1998 04:21:44 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from lsd.relcom.eu.net (ache@lsd.relcom.eu.net [193.125.27.73]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA25324; Mon, 30 Mar 1998 04:21:31 -0800 (PST) (envelope-from ache@lsd.relcom.eu.net) Received: (from ache@localhost) by lsd.relcom.eu.net (8.8.8/8.8.8) id QAA01613; Mon, 30 Mar 1998 16:21:21 +0400 (MSD) (envelope-from ache) Message-ID: <19980330162120.01151@nagual.pp.ru> Date: Mon, 30 Mar 1998 16:21:20 +0400 From: =?koi8-r?B?4c7E0sXKIP7F0s7P1w==?= To: Wolfgang Helbig , freebsd-bugs@FreeBSD.ORG Cc: bde@FreeBSD.ORG Subject: Re: bin/6164 Mail-Followup-To: Wolfgang Helbig , freebsd-bugs@FreeBSD.ORG, bde@freebsd.org References: <199803300920.BAA08095@freefall.freebsd.org> <199803301102.NAA22390@rvc1.informatik.ba-stuttgart.de> <19980330161329.17370@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit X-Mailer: Mutt 0.89.1i In-Reply-To: <19980330161329.17370@nagual.pp.ru>; from ache@nagual.pp.ru on Mon, Mar 30, 1998 at 04:13:29PM +0400 Organization: Biomechanoid Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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