diff --git a/inc/RRule.php b/inc/RRule.php index 0f55c1d6..9e058bad 100644 --- a/inc/RRule.php +++ b/inc/RRule.php @@ -410,9 +410,7 @@ class RepeatRuleDateTime extends DateTime { public function FloatOrUTC($return_floating_times = false) { $gmt = clone($this); if ( !$return_floating_times && isset($this->tzid) && $this->tzid != 'UTC' ) { - $dtz = parent::getTimezone(); - $offset = 0 - $dtz->getOffset($gmt); - $gmt->modify( $offset . ' seconds' ); + $gmt->setTimezone('UTC'); } if ( $this->is_date ) return $gmt->format('Ymd'); if ( $return_floating_times ) return $gmt->format('Ymd\THis');