]> granicus.if.org Git - php/commitdiff
Added missing date_default_timezone_set('UTC'); to the appropriate tests. A few now...
authorPhilip Olson <philip@php.net>
Thu, 12 May 2011 06:51:46 +0000 (06:51 +0000)
committerPhilip Olson <philip@php.net>
Thu, 12 May 2011 06:51:46 +0000 (06:51 +0000)
ext/date/tests/DateInterval_format.phpt
ext/date/tests/bug48187.phpt
ext/date/tests/bug51819.phpt
ext/date/tests/bug51866.phpt

index 8088a0aa7c1623acdc45ff19b5332ece9a99ba26..c144f585ac4209161dc518ecabf26703ed621411 100644 (file)
@@ -10,6 +10,7 @@ Daniel Convissor <danielc@php.net>
 <?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');
index 24a295ddd672479d438299b58b9049ed20477318..78c0fb2a602662b2696e268fc74d3a5ecb46b00e 100644 (file)
@@ -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');
index afcb9c7d4843e1b1e052db4eb56d8f33ba09fd02..1ee7c324f624602f3d0f2b0014b14468a9efe493 100644 (file)
@@ -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();
index 568b5a3d701e93034bc53da6ca2806cc3de09ad0..8d765b02f0eb88fac78aa183d97bbcc5d6433599 100644 (file)
@@ -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' ),