Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/lib/libc/time



On Fri, Oct 30, 2015 at 09:06:11AM +0700, Robert Elz wrote:
>     Date:        Fri, 30 Oct 2015 01:49:36 +0000
>     From:        "Brian Ginsbach" <ginsbach%netbsd.org@localhost>
>     Message-ID:  <20151030014936.3FD4698%cvs.netbsd.org@localhost>
> 
>   | Reject timezone offsets more than 12 hours (east or west).
> 
> That's definitely incorrect.
> 
> andromeda$ TZ=Pacific/Auckland date +"%c %z"
> Fri Oct 30 15:04:08 2015 +1300
> 
> That's right now (or a minute or two ago).
> 
> Offsets of +1400 have been seen as well, and +1500 isn't out of the
> question.   I'm not sure if -1300 has ever been used, but probably.
> 
> If you need limits, limit it to +/- 2400

Exactly.  It can't be more than 23:59 by ISO 8601 and RFC 3339 definition which
is what this is supposed to be parsing.

Now just convince the GNU C library folks they've got it wrong. ;-)

Brian


Home | Main Index | Thread Index | Old Index