We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 052817b commit 8cd4cd3Copy full SHA for 8cd4cd3
1 file changed
system/I18n/Time.php
@@ -479,21 +479,7 @@ public function getQuarter(): string
479
*/
480
public function getDst(): bool
481
{
482
- // grab the transactions that would affect today
483
- $start = strtotime('-1 year', $this->getTimestamp());
484
- $end = strtotime('+2 year', $start);
485
- $transitions = $this->timezone->getTransitions($start, $end);
486
-
487
- $daylightSaving = false;
488
489
- foreach ($transitions as $transition) {
490
- if ($transition['time'] > $this->format('U')) {
491
- $daylightSaving = (bool) ($transition['isdst'] ?? $daylightSaving);
492
- break;
493
- }
494
495
496
- return $daylightSaving;
+ return (bool) $this->format('I');
497
}
498
499
/**
0 commit comments