[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: os.time() vs. isdst
- From: Alexander Gladysh <agladysh@...>
- Date: Wed, 6 Apr 2011 05:42:51 +0400
On Wed, Apr 6, 2011 at 05:31, Alexander Gladysh <agladysh@gmail.com> wrote:
> Now, I've hit a nasty issue[1] when I *must* use negative `isdst`
> value. I do not hope that there is a way to workaround this for stock
> `os.date()`, so I have to roll out my own C module for 5.1.
> But maybe it is not too late to change this in 5.2?
I'm not sure, but it looks to me that, in order to ensure correct
behavior of gmtime(), os.date() must set tm_isdst to -1 unless user
explicitly specified a value. (And not doing so is probably a bug
worth fixing in 5.1.5.) Maybe someone would shed a light on this?
Alexander.