diff options
| author | Philip Olson <philip@php.net> | 2011-05-12 06:51:46 +0000 |
|---|---|---|
| committer | Philip Olson <philip@php.net> | 2011-05-12 06:51:46 +0000 |
| commit | c2a245f5822ec349955cb689696a1cc326ab7b90 (patch) | |
| tree | 0754e6164232fb683c8beb88cf31f0ea826bfe23 | |
| parent | 5dcdf5c4672def4941b3e77e09ce3bb4e6ff7d7b (diff) | |
| download | php-git-c2a245f5822ec349955cb689696a1cc326ab7b90.tar.gz | |
Added missing date_default_timezone_set('UTC'); to the appropriate tests. A few now pass by not showing the timezone warning.
| -rw-r--r-- | ext/date/tests/DateInterval_format.phpt | 1 | ||||
| -rw-r--r-- | ext/date/tests/bug48187.phpt | 2 | ||||
| -rw-r--r-- | ext/date/tests/bug51819.phpt | 2 |
3 files changed, 5 insertions, 0 deletions
diff --git a/ext/date/tests/DateInterval_format.phpt b/ext/date/tests/DateInterval_format.phpt index 8088a0aa7c..c144f585ac 100644 --- a/ext/date/tests/DateInterval_format.phpt +++ b/ext/date/tests/DateInterval_format.phpt @@ -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'); diff --git a/ext/date/tests/bug48187.phpt b/ext/date/tests/bug48187.phpt index 24a295ddd6..78c0fb2a60 100644 --- a/ext/date/tests/bug48187.phpt +++ b/ext/date/tests/bug48187.phpt @@ -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'); diff --git a/ext/date/tests/bug51819.phpt b/ext/date/tests/bug51819.phpt index afcb9c7d48..1ee7c324f6 100644 --- a/ext/date/tests/bug51819.phpt +++ b/ext/date/tests/bug51819.phpt @@ -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(); |
