Skip to content

Commit c2a245f

Browse files
committed
Added missing date_default_timezone_set('UTC'); to the appropriate tests. A few now pass by not showing the timezone warning.
1 parent 5dcdf5c commit c2a245f

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

ext/date/tests/DateInterval_format.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Daniel Convissor <danielc@php.net>
1010
<?php if (!method_exists('DateInterval', 'format')) die("skip: method doesn't exist"); ?>
1111
--FILE--
1212
<?php
13+
date_default_timezone_set('UTC');
1314

1415
$date1 = new DateTime('2000-01-01 00:00:00');
1516
$date2 = new DateTime('2001-03-04 04:05:06');

ext/date/tests/bug48187.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
Bug #48187 (DateTime::diff() corrupting microtime() result)
33
--FILE--
44
<?php
5+
date_default_timezone_set('UTC');
6+
57
// two arbitrary dates
68
$date1 = new DateTime('2005-07-23');
79
$date2 = new DateTime('2006-02-14');

ext/date/tests/bug51819.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
Bug #51819 (Case discrepancy in timezone names cause Uncaught exception and fatal error)
33
--FILE--
44
<?php
5+
date_default_timezone_set('UTC');
6+
57
$aTzAbbr = timezone_abbreviations_list();
68

79
$aTz = array();

0 commit comments

Comments
 (0)