summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2013-07-23 06:51:36 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2013-07-23 06:51:36 (GMT)
commit23cb0c658f32beff1ea92971028783f166ac2291 (patch)
treede553649925b64a14a416514ab518073cf834589
parent791729080968548a4d64e84ad5726523f5e063da (diff)
downloadroundcubemail-plugins-kolab-23cb0c658f32beff1ea92971028783f166ac2291.tar.gz
Treat event.changed property as unix timestamp
-rw-r--r--plugins/calendar/calendar.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/calendar/calendar.php b/plugins/calendar/calendar.php
index d2e383a..09ef214 100644
--- a/plugins/calendar/calendar.php
+++ b/plugins/calendar/calendar.php
@@ -708,8 +708,6 @@ class calendar extends rcube_plugin
$status = $event['fallback'];
$latest = false;
$html = html::div('rsvp-status', $status != 'CANCELLED' ? $this->gettext('acceptinvitation') : '');
- if (is_numeric($event['changed']))
- $event['changed'] = new DateTime('@'.$event['changed']);
$this->load_driver();
if ($existing = $this->driver->get_event($event, true, false, true)) {
$latest = ($event['sequence'] && $existing['sequence'] == $event['sequence'])
@@ -1938,7 +1936,7 @@ class calendar extends rcube_plugin
if ($success) {
$message = $this->ical->method == 'REPLY' ? 'attendeupdateesuccess' : ($deleted ? 'successremoval' : 'importedsuccessfully');
$this->rc->output->command('display_message', $this->gettext(array('name' => $message, 'vars' => array('calendar' => $calendar['name']))), 'confirmation');
- $this->rc->output->command('plugin.fetch_event_rsvp_status', array('uid' => $event['uid'], 'changed' => $event['changed']->format('U'), 'sequence' => intval($event['sequence']), 'fallback' => strtoupper($status)));
+ $this->rc->output->command('plugin.fetch_event_rsvp_status', array('uid' => $event['uid'], 'changed' => $event['changed'], 'sequence' => intval($event['sequence']), 'fallback' => strtoupper($status)));
$error_msg = null;
}
else if ($error_msg)