Fix date_suninfo_tests; add missing date_default_timezone_set() to ensure they PASS when run in any timezone. Tested on WIndows, Linux and Linux 64bit.

This commit is contained in:
andy wharmby 2009-01-14 16:28:18 +00:00
parent cd63e52c0b
commit c1bf1627dd
2 changed files with 2 additions and 4 deletions

View File

@ -7,8 +7,7 @@ Test date_sun_info() function : error variations - PAss unexepcted valuesfor lat
* Source code: ext/standard/data/php_date.c
*/
// supress date() function strict msgs
error_reporting(E_ALL & ~E_STRICT);
date_default_timezone_set("UTC");
echo "*** Testing date_sun_info() : usage variations ***\n";

View File

@ -7,8 +7,7 @@ Test date_sun_info() function : usage variations - Pass unexpected values for lo
* Source code: ext/standard/data/php_date.c
*/
// supress date() function strict msgs
error_reporting(E_ALL & ~E_STRICT);
date_default_timezone_set("UTC");
echo "*** Testing date_sun_info() : usage variations ***\n";