mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1: Fix timezone dependent test
This commit is contained in:
commit
d316712baa
1 changed files with 3 additions and 1 deletions
|
@ -5,6 +5,8 @@ intl
|
|||
--FILE--
|
||||
<?php
|
||||
|
||||
date_default_timezone_set('America/Los_Angeles');
|
||||
|
||||
printFormat(IntlDateFormatter::RELATIVE_FULL, IntlDateFormatter::NONE, getYesterday());
|
||||
printFormat(IntlDateFormatter::RELATIVE_LONG, IntlDateFormatter::NONE, getYesterday());
|
||||
printFormat(IntlDateFormatter::RELATIVE_MEDIUM, IntlDateFormatter::NONE, getYesterday());
|
||||
|
@ -50,7 +52,7 @@ function getTomorrow(): DateTimeImmutable {
|
|||
}
|
||||
|
||||
function getDayInPast(): DateTimeImmutable {
|
||||
return new DateTimeImmutable("2020-01-20 20:20:20", new DateTimeZone("UTC"));
|
||||
return new DateTimeImmutable("2020-01-20 20:20:20");
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue