date manupulation strangeness

Eugene Grosbein eugen at kuzbass.ru
Sun Oct 28 10:48:35 PDT 2007


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?

Eugene


More information about the freebsd-stable mailing list