GNU bug report logs - #9614
date: warn on invalid TZ string (was: date ignoring wrong

Previous Next

Package: coreutils;

Reported by: Sandro Santilli <strk <at> keybit.net>

Date: Tue, 27 Sep 2011 16:14:02 UTC

Severity: wishlist

Merged with 11748, 14229

Full log


View this message in rfc822 format

From: Sandro Santilli <strk <at> keybit.net>
To: 9614 <at> debbugs.gnu.org
Subject: bug#9614: date ignoring wrong TZ values
Date: Tue, 27 Sep 2011 16:09:13 +0200
I've been puzzled by date(1) giving weird results
when setting TZ to values unknown by zoneinfo.

As far as:

 $ TZ=Fake date
 Tue Sep 27 14:06:32 Fake 2011

It would be more helpful if the command raised an error 
or warning about "unknown" timezones rather than giving
random dates.

It's particularly anonying when the same TZ _reported_
by the command isn't recognized in input:

  $ date
  Tue Sep 27 16:08:13 CEST 2011

  $ TZ=CEST date
  Tue Sep 27 14:08:13 CEST 2011

Thanks for making a clock available for everyone, btw :)

--strk;

  ()   Free GIS & Flash consultant/developer
  /\   http://strk.keybit.net/services.html




This bug report was last modified 6 years and 166 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.