Test: /ext/date/tests/bug60236.phpt - Version 5.3.9RC3-dev        

Bug #60236 TLA timezone dates are not converted properly from timestamp
Submitted: 2011-11-07 18:10:33 Modified: 2011-11-24 17:14:00
From: stas Assigned: derick
Status: Closed Package: Date/time related
PHP Version: 5.4.0beta2 OS: *

There are 2 different diffs reported by users for this test.

Count Diff
1 (50%)
001+ 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 'Europe/Helsinki' for 'EEST/3.0/DST' instead' in %s/bug60236.php:2
002+ Stack trace:
003+ #0 %s/bug60236.php(2): DateTime->__construct('2010-07-06 18:3...')
004+ #1 {main}
005+ thrown in %s/bug60236.php on line 2
001- string(10) "1278455908"
002- object(DateTime)#1 (3) {
003- ["date"]=>
004- string(19) "2010-07-06 18:38:28"
005- ["timezone_type"]=>
006- int(2)
007- ["timezone"]=>
008- string(3) "EDT"
009- }
1 (50%)
001+ 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 'Europe/Berlin' for 'CET/1.0/no DST' instead' in %s/bug60236.php:2
002+ Stack trace:
003+ #0 %s/bug60236.php(2): DateTime->__construct('2010-07-06 18:3...')
004+ #1 {main}
005+ thrown in %s/bug60236.php on line 2
001- string(10) "1278455908"
002- object(DateTime)#1 (3) {
003- ["date"]=>
004- string(19) "2010-07-06 18:38:28"
005- ["timezone_type"]=>
006- int(2)
007- ["timezone"]=>
008- string(3) "EDT"
009- }