| @@ 1012-1018 (lines=7) @@ | ||
| 1009 | } |
|
| 1010 | } |
|
| 1011 | // same with the alarms |
|
| 1012 | if (isset($event['alarm']) && is_array($event['alarm'])) |
|
| 1013 | { |
|
| 1014 | foreach($event['alarm'] as &$alarm) |
|
| 1015 | { |
|
| 1016 | $alarm['time'] = $this->date2usertime((int)$alarm['time'],$date_format); |
|
| 1017 | } |
|
| 1018 | } |
|
| 1019 | } |
|
| 1020 | } |
|
| 1021 | ||
| @@ 2817-2823 (lines=7) @@ | ||
| 2814 | if (isset($event[$ts])) $event[$ts] = $event[$ts] ? $this->date2usertime($event[$ts]) : 0; |
|
| 2815 | } |
|
| 2816 | // same with the recur exceptions |
|
| 2817 | if (isset($event['recur_exception']) && is_array($event['recur_exception'])) |
|
| 2818 | { |
|
| 2819 | foreach($event['recur_exception'] as $n => $date) |
|
| 2820 | { |
|
| 2821 | $event['recur_exception'][$n] = $this->date2usertime($date); |
|
| 2822 | } |
|
| 2823 | } |
|
| 2824 | // same with the alarms |
|
| 2825 | if (isset($event['alarm']) && is_array($event['alarm'])) |
|
| 2826 | { |
|
| @@ 2825-2831 (lines=7) @@ | ||
| 2822 | } |
|
| 2823 | } |
|
| 2824 | // same with the alarms |
|
| 2825 | if (isset($event['alarm']) && is_array($event['alarm'])) |
|
| 2826 | { |
|
| 2827 | foreach($event['alarm'] as $id => $alarm) |
|
| 2828 | { |
|
| 2829 | $event['alarm'][$id]['time'] = $this->date2usertime($alarm['time']); |
|
| 2830 | } |
|
| 2831 | } |
|
| 2832 | } |
|
| 2833 | /** |
|
| 2834 | * Delete events that are more than $age years old |
|