timezone printing in date messed up?

Bakul Shah bakul at bitblocks.com
Sat Nov 3 18:04:38 PDT 2007


$ sh <<'EOF'
for a in 0 1 2 3 4 5 6 7 8 9 10 11 12 
do
  date -j -f %s `expr 1194163200 + 600 \* $a`
done
EOF
Sun Nov  4 01:00:00 PDT 2007
Sun Nov  4 01:10:00 PDT 2007
Sun Nov  4 01:20:00 PDT 2007
Sun Nov  4 01:30:00 PST 2007 <---
Sun Nov  4 01:40:00 PST 2007 <---
Sun Nov  4 01:50:00 PST 2007 <---
Sun Nov  4 01:00:00 PDT 2007 <---
Sun Nov  4 01:10:00 PDT 2007 <---
Sun Nov  4 01:20:00 PDT 2007 <---
Sun Nov  4 01:30:00 PST 2007
Sun Nov  4 01:40:00 PST 2007
Sun Nov  4 01:50:00 PST 2007
Sun Nov  4 02:00:00 PST 2007
$

Look at the lines with <---!  This is with the latest
timezone files.  OS X Leopard has the same bug.  I assume
this is a bug and not due to an act of congress that mandates
a flip flop timezone?


More information about the freebsd-hackers mailing list