Skip to content

Commit

Permalink
Merge branch 'PHP-8.3'
Browse files Browse the repository at this point in the history
* PHP-8.3:
  Fix timezone dependent test
  • Loading branch information
iluuu1994 committed Nov 10, 2023
2 parents 311cae0 + 677db1b commit 60ca5a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/intl/tests/dateformat_format_relative.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down Expand Up @@ -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");
}

?>
Expand Down

0 comments on commit 60ca5a0

Please sign in to comment.