Commit 81786f5b authored by Bart Vullings's avatar Bart Vullings

ZP-1389 Fix wrong order causing fatal error. Released under the Affero GNU...

ZP-1389 Fix wrong order causing fatal error. Released under the Affero GNU General Public License (AGPL) version 3.
parent 48b74bcc
...@@ -967,11 +967,11 @@ class BackendCalDAV extends BackendDiff { ...@@ -967,11 +967,11 @@ class BackendCalDAV extends BackendDiff {
continue; continue;
} }
} }
$vtransition = new iCalComponent();
$vtransition->AddProperty("TZOFFSETFROM", $offset_from); $vtransition->AddProperty("TZOFFSETFROM", $offset_from);
$vtransition->AddProperty("TZOFFSETTO", $offset_to); $vtransition->AddProperty("TZOFFSETTO", $offset_to);
$offset_from = $offset_to; $offset_from = $offset_to;
$vtransition = new iCalComponent();
$type = $transitions[$i]['isdst'] == 1 ? "DAYLIGHT" : "STANDARD"; $type = $transitions[$i]['isdst'] == 1 ? "DAYLIGHT" : "STANDARD";
$vtransition->SetType($type); $vtransition->SetType($type);
$vtransition->AddProperty("TZNAME", $transitions[$i]['abbr']); $vtransition->AddProperty("TZNAME", $transitions[$i]['abbr']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment