Re: bug in coreutils-5.97-23 date program or is tz?
From:
Bob Proulx
Subject:
Re: bug in coreutils-5.97-23 date program or is tz?
Date:
Mon, 15 Mar 2010 18:45:57 -0600
User-agent:
Mutt/1.5.18 (2008-05-17)
Joseph Conrad wrote:
> # date
> Sun Mar 14 18:47:12 MDT 2010
>
> # date -d "01:59 2010-03-14"
> Sun Mar 14 01:59:00 MST 2010
Correct.
> # date -d "02:00 2010-03-14"
> date: invalid date `02:00 2010-03-14'
>
> # date -d "02:59 2010-03-14"
> date: invalid date `02:59 2010-03-14'
Correct, depending upon your timezone. In the US Mountain timezone
Daylight Savings Time went into effect by act of Congress due to the
passage of the Energy Policy Act in 2005 and those times do not exist.
They are invalid. Please see the FAQ for more information.
http://www.gnu.org/software/coreutils/faq/#The-date-command-is-not-working-right_002ehttp://en.wikipedia.org/wiki/Energy_Policy_Act_of_2005#Change_to_daylight_saving_time
You might consider using UTC to avoid DST issues.
Bob