philip Thu, 12 May 2011 06:51:46 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=310963
Log: Added missing date_default_timezone_set('UTC'); to the appropriate tests. A few now pass by not showing the timezone warning. Changed paths: U php/php-src/branches/PHP_5_3/ext/date/tests/DateInterval_format.phpt U php/php-src/branches/PHP_5_3/ext/date/tests/bug48187.phpt U php/php-src/branches/PHP_5_3/ext/date/tests/bug51819.phpt U php/php-src/trunk/ext/date/tests/DateInterval_format.phpt U php/php-src/trunk/ext/date/tests/bug48187.phpt U php/php-src/trunk/ext/date/tests/bug51819.phpt U php/php-src/trunk/ext/date/tests/bug51866.phpt Modified: php/php-src/branches/PHP_5_3/ext/date/tests/DateInterval_format.phpt =================================================================== --- php/php-src/branches/PHP_5_3/ext/date/tests/DateInterval_format.phpt 2011-05-12 01:43:59 UTC (rev 310962) +++ php/php-src/branches/PHP_5_3/ext/date/tests/DateInterval_format.phpt 2011-05-12 06:51:46 UTC (rev 310963) @@ -10,6 +10,7 @@ <?php if (!method_exists('DateInterval', 'format')) die("skip: method doesn't exist"); ?> --FILE-- <?php +date_default_timezone_set('UTC'); $date1 = new DateTime('2000-01-01 00:00:00'); $date2 = new DateTime('2001-03-04 04:05:06'); Modified: php/php-src/branches/PHP_5_3/ext/date/tests/bug48187.phpt =================================================================== --- php/php-src/branches/PHP_5_3/ext/date/tests/bug48187.phpt 2011-05-12 01:43:59 UTC (rev 310962) +++ php/php-src/branches/PHP_5_3/ext/date/tests/bug48187.phpt 2011-05-12 06:51:46 UTC (rev 310963) @@ -2,6 +2,8 @@ Bug #48187 (DateTime::diff() corrupting microtime() result) --FILE-- <?php +date_default_timezone_set('UTC'); + // two arbitrary dates $date1 = new DateTime('2005-07-23'); $date2 = new DateTime('2006-02-14'); Modified: php/php-src/branches/PHP_5_3/ext/date/tests/bug51819.phpt =================================================================== --- php/php-src/branches/PHP_5_3/ext/date/tests/bug51819.phpt 2011-05-12 01:43:59 UTC (rev 310962) +++ php/php-src/branches/PHP_5_3/ext/date/tests/bug51819.phpt 2011-05-12 06:51:46 UTC (rev 310963) @@ -2,6 +2,8 @@ Bug #51819 (Case discrepancy in timezone names cause Uncaught exception and fatal error) --FILE-- <?php +date_default_timezone_set('UTC'); + $aTzAbbr = timezone_abbreviations_list(); $aTz = array(); Modified: php/php-src/trunk/ext/date/tests/DateInterval_format.phpt =================================================================== --- php/php-src/trunk/ext/date/tests/DateInterval_format.phpt 2011-05-12 01:43:59 UTC (rev 310962) +++ php/php-src/trunk/ext/date/tests/DateInterval_format.phpt 2011-05-12 06:51:46 UTC (rev 310963) @@ -10,6 +10,7 @@ <?php if (!method_exists('DateInterval', 'format')) die("skip: method doesn't exist"); ?> --FILE-- <?php +date_default_timezone_set('UTC'); $date1 = new DateTime('2000-01-01 00:00:00'); $date2 = new DateTime('2001-03-04 04:05:06'); Modified: php/php-src/trunk/ext/date/tests/bug48187.phpt =================================================================== --- php/php-src/trunk/ext/date/tests/bug48187.phpt 2011-05-12 01:43:59 UTC (rev 310962) +++ php/php-src/trunk/ext/date/tests/bug48187.phpt 2011-05-12 06:51:46 UTC (rev 310963) @@ -2,6 +2,8 @@ Bug #48187 (DateTime::diff() corrupting microtime() result) --FILE-- <?php +date_default_timezone_set('UTC'); + // two arbitrary dates $date1 = new DateTime('2005-07-23'); $date2 = new DateTime('2006-02-14'); Modified: php/php-src/trunk/ext/date/tests/bug51819.phpt =================================================================== --- php/php-src/trunk/ext/date/tests/bug51819.phpt 2011-05-12 01:43:59 UTC (rev 310962) +++ php/php-src/trunk/ext/date/tests/bug51819.phpt 2011-05-12 06:51:46 UTC (rev 310963) @@ -2,6 +2,8 @@ Bug #51819 (Case discrepancy in timezone names cause Uncaught exception and fatal error) --FILE-- <?php +date_default_timezone_set('UTC'); + $aTzAbbr = timezone_abbreviations_list(); $aTz = array(); Modified: php/php-src/trunk/ext/date/tests/bug51866.phpt =================================================================== --- php/php-src/trunk/ext/date/tests/bug51866.phpt 2011-05-12 01:43:59 UTC (rev 310962) +++ php/php-src/trunk/ext/date/tests/bug51866.phpt 2011-05-12 06:51:46 UTC (rev 310963) @@ -2,6 +2,8 @@ Bug #51866 (Lenient parsing with parseFromFormat) --FILE-- <?php +date_default_timezone_set('UTC'); + $tests = array( array( 'Y-m-d', '2001-11-29 13:20:01' ), array( 'Y-m-d+', '2001-11-29 13:20:01' ),
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php