On Fri, 10 May 2019 16:52:35 +0200, Ingo Schwarze wrote:

> I failed to find any users that do *not* expect seconds.
> So my conclusion is that the documentation is right and
> what the code in strptime.c does is wrong.

Yes, tm_gmtoff is in seconds.

> Here is a patch to fix the code.

OK millert@ for that part.

> The change to %Z is exactly what Hiltjo sent.
> The current code for %z is unnecessarily complicated.
> Rather than fixing it, i simply rewrote it from scratch.
> I like it when a bugfix results in -28 +11 LOC and better readability.

I don't believe this handles the "[+-]hh" form.

 - todd

Reply via email to