Date diff bug #65003
| From: | Pasindu De Silva | Date: | Mon, 04 Aug 2014 00:46:25 +0000 |
| Subject: | Date diff bug #65003 | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-76326@lists.php.net to get a copy of this message | ||
Hi
I had a similar error and check the src in intervel.c timelib_diff the date
is changed to
local or gmt
from
13-03-01
13-04-01
to
13-02-28
13-03-31
rt->d = two->d - one->d;
and makes it 1 month and 3 days
could it be solved by only running timelib_apply_localtime if date zones are
different or else can put some other conditions to to prevent this, any
other
way to solve this, bug is for php 5.4 but exists in newer versions too.
Thanks
Pasindu
--
*Pasindu De SilvaLinkedIn <http://www.linkedin.com/in/pasindud>*
*ppasindud@gmail.com* <ppasindud@gmail.com>
*G+ ppasindud <https://plus.google.com/u/0/107016732778776170349/>*