Re: date_diff broken?

From: Date: Fri, 17 Jun 2011 15:02:01 +0000
Subject: Re: date_diff broken?
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-53353@lists.php.net to get a copy of this message
Hi!
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. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227

« previous php.internals (#53353) next »