We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b61e36 commit ae2660fCopy full SHA for ae2660f
1 file changed
src/TimeZone.php
@@ -77,12 +77,7 @@ public static function fromNativeDateTimeZone(DateTimeZone $dateTimeZone): TimeZ
77
* the correct offset including seconds, so let's use it to make a correction if we have an offset-based TZ.
78
* This has been fixed in PHP 8.1.20 and PHP 8.2.7.
79
*/
80
- if ($parsed instanceof TimeZoneOffset
81
- && (
82
- (PHP_VERSION_ID >= 8_01_07 && PHP_VERSION_ID < 8_01_20)
83
- || (PHP_VERSION_ID >= 8_02_00 && PHP_VERSION_ID < 8_02_07)
84
- )
85
- ) {
+ if ($parsed instanceof TimeZoneOffset && PHP_VERSION_ID < 8_02_07) {
86
return TimeZoneOffset::ofTotalSeconds($dateTimeZone->getOffset(new DateTimeImmutable()));
87
}
88
0 commit comments