Date: Sun, 28 Oct 2007 19:20:11 +0100 From: Holger Kipp <hk@alogis.com> To: Eugene Grosbein <eugen@kuzbass.ru> Cc: stable@freebsd.org Subject: Re: date manupulation strangeness Message-ID: <20071028182011.GA89664@intserv.int1.b.intern> In-Reply-To: <20071028174832.GA21847@svzserv.kemerovo.su> References: <20071028174832.GA21847@svzserv.kemerovo.su>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Oct 29, 2007 at 12:48:32AM +0700, Eugene Grosbein wrote: > Hi! > > # unixtime=1193511599 > # LC_ALL=C TZ=Asia/Krasnoyarsk date -jr $unixtime > Sun Oct 28 02:59:59 KRAT 2007 > > That's last second of Summer time in this time zone. > > # LC_ALL=C TZ=Asia/Krasnoyarsk date -f %s $unixtime > Sun Oct 28 02:59:59 KRAT 2007 > > That's an hour later after the switch from Summer time, > but how can it be? It is a bug? I haven't checked, but usually during switch from summer to winter time, you change the clock back from 03:00 to 02:00, so you have the same hour twice. So you have 02:59:59 summer time and then you have (instead of 03:00:00) 02:00:00 winter time a second later, so one hour later you end up with 02:59:59 again. Best regards, Holger Kipp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071028182011.GA89664>