Skip to content

Commit bb82f4e

Browse files
kenjispaulbalandan
andauthored
refactor: compare it to the return value to make it easier to understand what it is doing
Co-authored-by: John Paul E. Balandan, CPA <51850998+paulbalandan@users.noreply.github.com>
1 parent 8cd4cd3 commit bb82f4e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/I18n/Time.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ public function getQuarter(): string
479479
*/
480480
public function getDst(): bool
481481
{
482-
return (bool) $this->format('I');
482+
return $this->format('I') === '1'; // 1 if Daylight Saving Time, 0 otherwise.
483483
}
484484

485485
/**

0 commit comments

Comments
 (0)