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

Re: policy around 'wontfix' bug tag



On Sun 04 Feb 2018 at 18:45:16 (+0100), Nicolas George wrote:
> David Wright (2018-02-04):
> > $ TZ=London date
> > Sun Feb  4 17:17:56 London 2018
> 
> $ TZ=UtterNonsense date
> Sun Feb  4 17:44:00 UtterNonsense 2018
> 
> The fact that it printed the name you put and not the official name of
> the time zone shows that the value is invalid. The correct value would
> have been:
> 
> $ TZ=Europe/London date 
> Sun Feb  4 17:44:49 GMT 2018

Which goes to show how fragile relying on a TZ that doesn't originate
from a legitimate source, of course. Which is why I have

$ ls -l .timezone
lrwxrwxrwx 1 david david 13 Jan 22 20:44 .timezone -> /etc/timezone
$ 

and

export TZ=$(cat $HOME/.timezone)

in my startup files. Oh, and also a whattime function which is a
little more careful:

$ whattime london
Europe/London 2018-02-04 18:32:45 +0000 Sunday
$ whattime auckland
Pacific/Auckland 2018-02-05 07:33:04 +1300 Monday
$ 

Cheers,
David.


Reply to: