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

Bug#257244: /usr/bin/zdump: zdump Foo returns GMT rather than an error.



At Sun, 04 Jul 2004 09:35:05 +1000,
Robert Collins wrote:
> On Sun, 2004-07-04 at 05:05, GOTO Masanori wrote:
> > At Fri, 02 Jul 2004 16:32:48 +1000,
> > Robert Collins wrote:
> > > Package: libc6
> > > Version: 2.3.2.ds1-13
> > > Severity: minor
> > > File: /usr/bin/zdump
> > > 
> > > This can lead to confusion/problems when trying something like zdump
> > > London rather than zdump GB, and likewise if running on a system with
> > > less than the usual zoneinfo files.
> > 
> > Please describe your problem with the example in detail.
> 
> I thought I had. Oh well - here's a transcript of a session showing the
> problem.
> 
> robertc@lifelesslap:~$ zdump London
> London  Sat Jul  3 23:32:51 2004 London
> robertc@lifelesslap:~$ zdump GB    
> GB  Sun Jul  4 00:32:56 2004 BST
> robertc@lifelesslap:~$ zdump BST
> BST  Sat Jul  3 23:33:02 2004 BST
> 
> There is no indication in here which of the three invocation of zdump
> actually returned useful data. In actual fact, only the zdump GB returns
> accurate data, the other two calls just return GMT, but not labelleled
> as such.

Read tzname(3):

       If the TZ variable does appear in the environment but its value is NULL
       or its value cannot be interpreted using any of the  formats  specified
       below, Coordinated Universal Time (UTC) is used.

I close this bug as invalid, ok?

Regards,
-- gotom



Reply to: