Skip to content

Commit 528b92b

Browse files
committed
Changed to specify time zone correctly
1 parent 55dfc29 commit 528b92b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/intl/tests/dateformat_format_relative.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,19 @@ function printFormat(int $dateFormat, int $timeFormat, DateTimeImmutable $time)
3838
}
3939

4040
function getToday(): DateTimeImmutable {
41-
return new DateTimeImmutable();
41+
return new DateTimeImmutable("now", new DateTimeZone("America/Los_Angeles"));
4242
}
4343

4444
function getYesterday(): DateTimeImmutable {
45-
return new DateTimeImmutable("-1 day");
45+
return new DateTimeImmutable("-1 day", new DateTimeZone("America/Los_Angeles"));
4646
}
4747

4848
function getTomorrow(): DateTimeImmutable {
49-
return new DateTimeImmutable("+1 day");
49+
return new DateTimeImmutable("+1 day", new DateTimeZone("America/Los_Angeles"));
5050
}
5151

5252
function getDayInPast(): DateTimeImmutable {
53-
return new DateTimeImmutable("2020-01-20 20:20:20", new DateTimeZone("UTC"));
53+
return new DateTimeImmutable("2020-01-20 20:20:20", new DateTimeZone("America/Los_Angeles"));
5454
}
5555

5656
?>

0 commit comments

Comments
 (0)