[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#14229: invalid TZ and /bin/date
From: |
Mike Frysinger |
Subject: |
bug#14229: invalid TZ and /bin/date |
Date: |
Fri, 19 Apr 2013 16:26:18 -0400 |
User-agent: |
KMail/1.13.7 (Linux/3.8.3; KDE/4.6.5; x86_64; ; ) |
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
Description: This is a digitally signed message part.