Skip to content

Commit

Permalink
Fix format of UNTIL attribute when exporting to iCalendar (Joerg Pulz…
Browse files Browse the repository at this point in the history
… <Joerg.Pulz@frm2.tum.de>).
  • Loading branch information
yunosh committed Oct 6, 2014
1 parent 44e848c commit 2dc754d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions framework/Timezone/lib/Horde/Timezone/Rule.php
Expand Up @@ -157,7 +157,7 @@ public function addRules(Horde_Icalendar_Vtimezone $tz, $tzid, $name,
$last->mday--;
}
$last->setTimezone('UTC');
$until = ';UNTIL=' . $last->format('Ymd\THIs') . 'Z';
$until = ';UNTIL=' . $last->format('Ymd\THis') . 'Z';
}
$component->setAttribute(
'RRULE',
Expand Down Expand Up @@ -196,7 +196,7 @@ public function addRules(Horde_Icalendar_Vtimezone $tz, $tzid, $name,
$last->mday++;
}
$last->setTimezone('UTC');
$until = ';UNTIL=' . $last->format('Ymd\THIs') . 'Z';
$until = ';UNTIL=' . $last->format('Ymd\THis') . 'Z';
}
for ($days = array(), $i = $day, $lastDay = min(Horde_Date_Utils::daysInMonth($month, $rule[2]), $i + 6);
$day > 1 && $i <= $lastDay;
Expand Down Expand Up @@ -241,7 +241,7 @@ public function addRules(Horde_Icalendar_Vtimezone $tz, $tzid, $name,
$last->mday--;
}
$last->setTimezone('UTC');
$until = ';UNTIL=' . $last->format('Ymd\THIs') . 'Z';
$until = ';UNTIL=' . $last->format('Ymd\THis') . 'Z';
}
for ($days = array(), $i = 1; $i <= $day; $i++) {
$days[] = $i;
Expand Down

0 comments on commit 2dc754d

Please sign in to comment.