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:
kenjis 2021-12-07 18:32:51 +09:00 committed by GitHub
parent 8cd4cd33bf
commit bb82f4e760
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.
}
/**