Test: /ext/date/tests/bug62896.phpt - Version 5.4.8RC1        

Bug #62896 "DateTime->modify('+0 days')" Modifies DateTime Object
Submitted: 2012-08-22 15:30:30 Modified: 2012-10-01 03:21:38
From: hoang.nguyen Assigned: stas
Status: Closed Package: Date/time related
PHP Version: 5.4Git-2012-08-22 (snap) OS: Windows, Linux

There is 1 diff reported by users for this test.

Count Diff
7 (100%)
002+
003+ Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in %s/bug62896.php on line 6
004+
005+ Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in %s/bug62896.php:6
006+ Stack trace:
007+ #0 %s/bug62896.php(6): DateTime->__construct('@1345586400')
008+ #1 {main}
009+ thrown in %s/bug62896.php on line 6
002- 2012-08-21 22:00:00 GMT+0000 (offset 0)
003- 2012-08-21 22:00:00 GMT+0000 (offset 0)
004- FROM TIMESTAMP, WITH TZ:
005- 2012-08-22 00:00:00 CEST (offset 7200)
006- 2012-08-22 00:00:00 CEST (offset 7200)
007- FROM STRING:
008- 2012-08-22 00:00:00 CEST (offset 7200)
009- 2012-08-22 00:00:00 CEST (offset 7200)