Merge branch 'PHP-8.1' into PHP-8.2

* PHP-8.1:
  Fix timezone dependent test
This commit is contained in:
Ilija Tovilo 2023-11-10 12:11:17 +01:00
commit d316712baa
No known key found for this signature in database
GPG Key ID: A4F5D403F118200A

View File

@ -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");
}
?>