When I translate a date into seconds since the epoch, and then translate
them back, the time is off by one hour. I need to manually subtract an
hour to make the time accurate. An example follows:
_SEC=`date +%s`; echo $_SEC; date -d "1970-01-01 UTC +$_SEC sec -1 hour" \
--utc; date --utc
This yields:
960769639
Mon Jun 12 00:27:19 UTC 2000
Mon Jun 12 00:27:19 UTC 2000
However, if I remove the "-1 hour", I get:
960769833
Mon Jun 12 01:30:33 UTC 2000
Mon Jun 12 00:30:33 UTC 200
My guess is that there's something wrong in the way it's dealing with the
offset from UTC during daylight savings time. Have you seen this problem
before?
--
Todd A. Jacobs
Senior Network Consultant