Re: date_diff broken?
| From: | Derick Rethans | Date: | Fri, 17 Jun 2011 16:54:16 +0000 |
| Subject: | Re: date_diff broken? | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-53355@lists.php.net to get a copy of this message | ||
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.
cheers,
Derick
--
http://derickrethans.nl | http://xdebug.org
Like Xdebug? Consider a donation: http://xdebug.org/donate.php
twitter: @derickr and @xdebug