Skip to content

Commit 1411c91

Browse files
gr8manmichalsn
andauthored
Update tests/system/I18n/TimeTest.php
Co-authored-by: Michal Sniatala <michal@sniatala.pl>
1 parent daba480 commit 1411c91

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎tests/system/I18n/TimeTest.php‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,11 @@ public function testTomorrowWithTimezoneAcrossDateBoundary(): void
242242

243243
$nyTomorrow = Time::tomorrow('America/New_York');
244244
$this->assertSame('2026-09-08 00:00:00', $nyTomorrow->toDateTimeString());
245+
// Moving forward must select March 28 without normalizing into March 29.
246+
Time::setTestNow('2026-03-27 23:30:00', 'America/Nuuk');
245247

248+
$nuukTomorrow = Time::tomorrow('America/Nuuk');
249+
$this->assertSame('2026-03-28 00:00:00', $nuukTomorrow->toDateTimeString());
246250
Time::setTestNow();
247251
}
248252

0 commit comments

Comments
 (0)