GNU bug report logs -
#14229
invalid TZ and /bin/date
Previous Next
Full log
View this message in rfc822 format
[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.