GNU bug report logs - #14229
invalid TZ and /bin/date

Previous Next

Package: coreutils;

Reported by: Donald Berry <dberry <at> redhat.com>

Date: Thu, 18 Apr 2013 20:30:02 UTC

Severity: wishlist

Merged with 9614, 11748

Full log


View this message in rfc822 format

From: Mike Frysinger <vapier <at> gentoo.org>
To: 14229 <at> debbugs.gnu.org
Cc: eggert <at> cs.ucla.edu, dberry <at> redhat.com
Subject: bug#14229: invalid TZ and /bin/date
Date: Fri, 19 Apr 2013 16:26:18 -0400
[Message part 1 (text/plain, inline)]
On Friday 19 April 2013 15:47:46 Donald Berry wrote:
> Yes, date/GNU accepts whatever TZ string you pass it without error, but
> this leads to very confusing results.
Paul said the "GNU system", not "GNU/date".  coreutils doesn't parse the TZ 
env var, the C library does.  similarly, the date program doesn't do the time 
parsing, it relies on the C library to handle these details.  your use of 
`date` here is just the simplest way from the command line to test the C 
library.  you can write C code that calls the timezone funcs and see the same 
behavior.

> Is there any documentation of what the supported/recognized TZ strings are?
>  Are there any plans to reject invalid strings?

in the GNU system, that means glibc does the parsing.  so review the glibc 
manual for details:
http://www.gnu.org/software/libc/manual/html_node/TZ-Variable.html
-mike
[signature.asc (application/pgp-signature, inline)]

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

Previous Next


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