1 parent 91ebc37 commit 0bb13acCopy full SHA for 0bb13ac
1 file changed
tests/system/I18n/TimeTest.php
@@ -225,7 +225,11 @@ public function testYesterdayWithTimezoneAcrossDateBoundary(): void
225
226
$nyYesterday = Time::yesterday('America/New_York');
227
$this->assertSame('2026-09-06 00:00:00', $nyYesterday->toDateTimeString());
228
+// March 28 at 23:30 does not exist in Nuuk due to the DST transition.
229
+Time::setTestNow('2026-03-29 23:30:00', 'America/Nuuk');
230
231
+$nuukYesterday = Time::yesterday('America/Nuuk');
232
+$this->assertSame('2026-03-28 00:00:00', $nuukYesterday->toDateTimeString());
233
Time::setTestNow();
234
}
235
0 commit comments