mirror of
https://github.com/php/php-src.git
synced 2024-12-03 23:05:57 +08:00
Added missing date_default_timezone_set('UTC'); to the appropriate tests. A few now pass by not showing the timezone warning.
This commit is contained in:
parent
5dcdf5c467
commit
c2a245f582
@ -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');
|
||||
|
@ -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');
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user