summaryrefslogtreecommitdiff
path: root/plugins/calendar/drivers/kolab/kolab_calendar.php
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2012-11-02 15:25:25 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2012-11-02 15:25:25 (GMT)
commit728a28c5e9c5cafd639a5357d2bf40280a35633f (patch)
tree09cdeee8e5b735666fec865064a725de91b95cb8 /plugins/calendar/drivers/kolab/kolab_calendar.php
parent1d18e0a064d77b79c824e1f24bb6cc752ca07c80 (diff)
downloadroundcubemail-plugins-kolab-728a28c5e9c5cafd639a5357d2bf40280a35633f.tar.gz
Fix recurrence computation with UMTIL date
Diffstat (limited to 'plugins/calendar/drivers/kolab/kolab_calendar.php')
-rw-r--r--plugins/calendar/drivers/kolab/kolab_calendar.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/calendar/drivers/kolab/kolab_calendar.php b/plugins/calendar/drivers/kolab/kolab_calendar.php
index b7a1bc8..84f7dca 100644
--- a/plugins/calendar/drivers/kolab/kolab_calendar.php
+++ b/plugins/calendar/drivers/kolab/kolab_calendar.php
@@ -532,8 +532,8 @@ class kolab_calendar
if ($recurrence['range-type'] == 'number')
$rrule['COUNT'] = intval($recurrence['range']);
else if ($recurrence['range-type'] == 'date') {
- $rrule['UNTIL'] = new DateTime('@'.$recurrence['range']);
- $rrule['UNTIL']->setTimezone($this->cal->user_timezone);
+ $rrule['UNTIL'] = new DateTime('@' . $recurrence['range']);
+ $rrule['UNTIL']->setTimezone(new DateTimeZone(date_default_timezone_get()));
}
if ($recurrence['day']) {