mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
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>
This commit is contained in:
parent
8cd4cd33bf
commit
bb82f4e760
@ -479,7 +479,7 @@ class Time extends DateTime
|
||||
*/
|
||||
public function getDst(): bool
|
||||
{
|
||||
return (bool) $this->format('I');
|
||||
return $this->format('I') === '1'; // 1 if Daylight Saving Time, 0 otherwise.
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user