bug-sh-utils
[Top][All Lists]
Advanced

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

Re: bug in date


From: Bob Proulx
Subject: Re: bug in date
Date: Fri, 26 Sep 2003 11:07:12 -0600
User-agent: Mutt/1.3.28i

Boris Maizel wrote:
> Found a bug in the date:
> date (GNU sh-utils) 2.0

Thanks for the report.  It is most appreciated.  However sh-utils-2.0
is very old.  In fact many bugs were fixed in 2.0.11 (or somewhere
around there).

This entry is in the FAQ.  Look for "date command is not working right".

  http://www.gnu.org/software/coreutils/faq/

And since then it has all been rolled into the coreutils package.
Here are the source locations of the current packages.

STABLE
  ftp://ftp.gnu.org/gnu/coreutils/coreutils-5.0.tar.gz
  ftp://ftp.gnu.org/gnu/coreutils/coreutils-5.0.tar.bz2
  (coreutils is the union of fileutils, textutils, and sh-utils)  

BETA
  ftp://alpha.gnu.org/gnu/coreutils/coreutils-5.0.91.tar.gz
  ftp://alpha.gnu.org/gnu/coreutils/coreutils-5.0.91.tar.bz2

> (from the SuSE 8.0 distribution)

Interesting.  I thought they had shipped the 2.0.11 version.  Guess
not!  I am sure their updates include newer versions.  If you could
check their site for updates I am confident it would have the fix for
your problem.

> Bug description:
> ----------------
> Wenn called in the form
> date -d <string>
> the time zone "CEST" in the string
> is recognized as +0100 instead of +0200
> 
> Example:
> === cat ===
> address@hidden:~> date
> Wed Sep 24 20:57:15 CEST 2003
> address@hidden:~> date -d "Wed Sep 24 20:57:15 CEST 2003"
> Wed Sep 24 21:57:15 CEST 2003
> === cat ===
> In the second call you can see the time displayed
> is 21:57 instead of 20:57.

I just tried this using the newer date command I get the following
result.

  TZ=CEST date -d "Wed Sep 24 20:57:15 CEST 2003"
  Wed Sep 24 20:57:15 CEST 2003

Bob




reply via email to

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