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 #60 received at 9614 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Assaf Gordon <assafgordon <at> gmail.com>, Sandro Santilli <strk <at> keybit.net>
Cc: 9614 <at> debbugs.gnu.org
Subject: Re: bug#9614: date ignoring wrong TZ values
Date: Tue, 1 Jan 2019 23:08:26 -0800
I think this implementation is heading in the wrong direction. To determine 
whether a time zone string FOO is valid, a program should call tzalloc (FOO) and 
sees whether that yields NULL.  And if tzalloc doesn't work that way now, we 
should fix tzalloc so it does. Once that happens, 'date' can simply call tzalloc 
(getenv ("TZ")) to see whether the time zone setting is OK.




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.