[EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:

Q1. Why is there a difference in the parsing of $TZ
    and --date ... timezone ?
Q2. Why is a warning not printed when an invalid $TZ is set?

$ TZ=America/Los_Angeles date
Wed Mar 31 07:21:51 PST 2004


Missing info:

$date --date "09:00 America/Los_Angeles"
date: invalid date `09:00 America/Los_Angeles'

$date --version
date (coreutils) 5.2.0

$rpm -q glibc
glibc-2.3.2-101


OK I've attached a patch that addresses question 1 above. Note this is not for merging, just for disussion really.

In detail the patch allows one to to:
date --date "09:00 America/Los_Angeles"

cheers,
PÃdraig.

Attachment: coreutils-5.2.0-getdate.diff
Description: TeXInfo document

_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to