diff --git a/src/ZonedDateTime.php b/src/ZonedDateTime.php index 930e5cd..96b0839 100644 --- a/src/ZonedDateTime.php +++ b/src/ZonedDateTime.php @@ -142,7 +142,7 @@ public static function ofInstant(Instant $instant, TimeZone $timeZone) : ZonedDa if ($timeZone instanceof TimeZoneOffset) { $timeZoneOffset = $timeZone; } else { - $timeZoneOffset = TimeZoneOffset::ofTotalSeconds($dateTimeZone->getOffset($dateTime)); + $timeZoneOffset = TimeZoneOffset::ofTotalSeconds($dateTime->getOffset()); } return new ZonedDateTime($localDateTime, $timeZoneOffset, $timeZone, $instant);