Re: date_diff broken?
| From: | Hannes Magnusson | Date: | Fri, 17 Jun 2011 17:11:53 +0000 |
| Subject: | Re: date_diff broken? | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-53358@lists.php.net to get a copy of this message | ||
On Fri, Jun 17, 2011 at 18:54, Derick Rethans <derick@php.net> wrote:
> On Fri, 17 Jun 2011, Derick Rethans wrote:
>
>> On Fri, 17 Jun 2011, Stas Malyshev wrote:
>>
>> > > If either of the dates use a TLA timezone (EDT, PST, GMT), rather
>> > > than the long name (Europe/London, Indian/Kerguelen,
>> > > America/Kentucky/Louisville), then that date is altered.
>> >
>> > Yes, this seems to be because TLA ones rely on ->z and ->dst which get
>> > reset in timelib_unixtime2gmt() while other one relies on tzinfo which
>> > is kept intact.
>>
>> Yup. I'm fixing it right now.
>
> Done... I had to do it by making a backup for now. It should be looked
> at again though, and I've added that to my (long) todo list.
Does it mean that all the tests Daniel added should work now?
http://news.php.net/php.cvs/65174
-Hannes