Bug #53147 [Opn->Bgs]: Date interval miscalculation
Edit report at http://bugs.php.net/bug.php?id=53147&edit=1
ID: 53147
Updated by: cataphract@php.net
Reported by: fpbarbi at gmail dot com
Summary: Date interval miscalculation
-Status: Open
+Status: Bogus
Type: Bug
Package: Calendar related
Operating System: Linux
PHP Version: 5.2.14
Block user comment: N
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
That's due to DST.
Previous Comments:
------------------------------------------------------------------------
[2010-10-24 23:15:15] fpbarbi at gmail dot com
Description:
------------
I tried many consecutive days in February 2011, but this glitch only
happens on that specific saturday-sunday interval.
Test script:
---------------
(strtotime("2011-02-20") - strtotime("2011-02-19"))/86400
Expected result:
----------------
I would expect the result to be "1", but it is "1,04166666667"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53147&edit=1
Thread (2 messages)