summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2015-01-23 11:06:45 (GMT)
committerAleksander Machniak <alec@alec.pl>2015-01-23 11:06:45 (GMT)
commitb5e3b87409350ef65c37a14683de3949773e696f (patch)
tree890e58a9db5ac27b7fe4b62b5076370acc16396c
parentffae171f25c86b021d1b489cbbc5b6a9edf339b4 (diff)
downloadkolab-syncroton-b5e3b87409350ef65c37a14683de3949773e696f.tar.gz
Fix alarm conversion to ActiveSync (minutes) if Kolab alarm is specified in seconds
-rw-r--r--lib/kolab_sync_data_calendar.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kolab_sync_data_calendar.php b/lib/kolab_sync_data_calendar.php
index 8ef659c..359821b 100644
--- a/lib/kolab_sync_data_calendar.php
+++ b/lib/kolab_sync_data_calendar.php
@@ -540,7 +540,7 @@ class kolab_sync_data_calendar extends kolab_sync_data implements Syncroton_Data
$value = intval($matches[1]);
switch ($matches[2]) {
- case 'S': $value = 1; break;
+ case 'S': $value = intval(round($value/60)); break;
case 'H': $value *= 60; break;
case 'D': $value *= 24 * 60; break;
case 'W': $value *= 7 * 24 * 60; break;