Skip to content

Commit

Permalink
Fix timezone dependent test
Browse files Browse the repository at this point in the history
Closes GH-12637
  • Loading branch information
SakiTakamachi authored and iluuu1994 committed Nov 10, 2023
1 parent 2a4775d commit 6a43135
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/intl/tests/dateformat_format_relative.phpt
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 6a43135

Please sign in to comment.