[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PDT timezone bug in GNU coreutils "date" v6.9

From: gmane
Subject: PDT timezone bug in GNU coreutils "date" v6.9
Date: Tue, 15 Jan 2008 10:44:39 -0800

To whom it may concern:

I believe I have identified a bug in the GNU coreutils "date" 
utility when handling the PDT timezone.

I'm running Fedora 8 kernel, and the command "date -
-version" reports:  date (GNU coreutils) 6.9

When using the "-d" option to display the specified time (vs now), 
this version of the date command apparently does not recognize 
"PDT" as a valid timezone.  For example:

$ date -d "Tue Jan 14 08:25:26 EST 2008" +%s
$ date -d "Tue Jan 14 08:25:26 EDT 2008" +%s
$ date -d"Tue Jan 14 08:25:26 PST 2008" +%s
$ date -d"Tue Jan 14 08:25:26 PDT 2008" +%s
date: invalid date `Tue Jan 14 08:25:26 PDT 2008'

Note that EST, EDT and PST work fine, however, PDT is listed as 

Note that I have tested this same command with a much earlier 
version of the "date" utility, and it worked fine when using PDT as 
the timezone.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]