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