Test: /ext/date/tests/bug52577.phpt - Version 5.7.0-dev        

Bug #52577 Incorrect date returning
Submitted: 2010-08-10 18:23:41 Modified: 2010-08-30 17:41:19
From: vadimx Assigned: derick
Status: Not a bug Package: Date/time related
PHP Version: 5.3.3 OS: Windows

There is 1 diff reported by users for this test.

Count Diff
4 (100%)
001+ Notice: date_default_timezone_set(): Timezone ID 'Europe/Kyiv' is invalid in %s/bug52577.php on line 2
002- Unixtime: 1281128400
003- Date(PHP): Sat, 07 Aug 2010 00:00:00 +0300
004- DateTime(PHP Class): Fri, 06 Aug 2010 21:00:00 +0000
003+
004+ 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/bug52577.php on line 6
005+ Unixtime: 1281139200
006+
007+ Warning: date(): 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/bug52577.php on line 8
008+ Date(PHP): Sat, 07 Aug 2010 00:00:00 +0000
009+
010+ 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/bug52577.php:9
011+ Stack trace:
012+ #0 %s/bug52577.php(9): DateTime->__construct('@1281139200')
013+ #1 {main}
014+ thrown in %s/bug52577.php on line 9