Skip to content

Commit 3919bc3

Browse files
authored
Merge pull request #3305 from samsonasik/break-foreach-time-getdst
add break; in foreach at Time::getDst() when daylightSaving set
2 parents 538d56f + e9b0417 commit 3919bc3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

system/I18n/Time.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,7 @@ public function getDst(): bool
593593
if ($transition['time'] > $this->format('U'))
594594
{
595595
$daylightSaving = (bool) $transition['isdst'] ?? $daylightSaving;
596+
break;
596597
}
597598
}
598599
return $daylightSaving;

0 commit comments

Comments
 (0)