Skip to content

Commit 60ca5a0

Browse files
committed
Merge branch 'PHP-8.3'
* PHP-8.3: Fix timezone dependent test
2 parents 311cae0 + 677db1b commit 60ca5a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/intl/tests/dateformat_format_relative.phpt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ intl
55
--FILE--
66
<?php
77

8+
date_default_timezone_set('America/Los_Angeles');
9+
810
printFormat(IntlDateFormatter::RELATIVE_FULL, IntlDateFormatter::NONE, getYesterday());
911
printFormat(IntlDateFormatter::RELATIVE_LONG, IntlDateFormatter::NONE, getYesterday());
1012
printFormat(IntlDateFormatter::RELATIVE_MEDIUM, IntlDateFormatter::NONE, getYesterday());
@@ -50,7 +52,7 @@ function getTomorrow(): DateTimeImmutable {
5052
}
5153

5254
function getDayInPast(): DateTimeImmutable {
53-
return new DateTimeImmutable("2020-01-20 20:20:20", new DateTimeZone("UTC"));
55+
return new DateTimeImmutable("2020-01-20 20:20:20");
5456
}
5557

5658
?>

0 commit comments

Comments
 (0)