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


Message #32 received at 9614 <at> debbugs.gnu.org (full text, mbox):

From: Sandro Santilli <strk <at> keybit.net>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 9614 <at> debbugs.gnu.org, Pádraig Brady <P <at> draigBrady.com>
Subject: Re: bug#9614: date ignoring wrong TZ values
Date: Wed, 28 Sep 2011 07:44:51 +0200
On Tue, Sep 27, 2011 at 11:52:22PM +0200, Andreas Schwab wrote:
> Pádraig Brady <P <at> draigBrady.com> writes:
> 
> > On 09/27/2011 03:09 PM, Sandro Santilli wrote:
> >> 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
> >
> > Yes, that is per POSIX.
> 
> This is not a POSIX format, since it lacks the offset.

A warning/error message with hint on how to correctly form
the string would be very friendly for users.

--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.