DateTime->modify('tomorrow') Bug in PHP 5.3 on Linux
| From: | Christian Stoller | Date: | Tue, 12 Mar 2013 15:59:01 +0000 |
| Subject: | DateTime->modify('tomorrow') Bug in PHP 5.3 on Linux | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-66592@lists.php.net to get a copy of this message | ||
Dear internals,
I have a strange bug with DateTime->modify('tomorrow') in PHP 5.3 on Linux.
Code to reproduce:
<?php
$d = new DateTime('2013-02-05 06:33:33');
echo $d->format('Y-m-d H:i:s')."\n";
$d->modify('tomorrow');
echo $d->format('Y-m-d H:i:s')."\n";
?>
Current output on Windows with PHP 5.3.14:
2013-02-05 06:33:33
2013-02-06 00:00:00
Current output on Linux (Debian) with PHP 5.3.3-7+squeeze15:
2013-02-05 06:33:33
2013-02-06 06:33:33
Can somebody verify this behavior? Are there any information about that or is there already
something in the bugtracker? I have googled but couldn't find anything about that.
Best regards
Christian Stoller