}
foreach ($alarms as $alarm) {
- $alarm['start'] = new Horde_Date($alarm['start']);
- if (!empty($alarm['end'])) {
- $alarm['end'] = new Horde_Date($alarm['end']);
- }
$this->set($alarm);
}
}
return array(
'id' => $this->uid,
'user' => $user,
- 'start' => $start->timestamp(),
- 'end' => $this->end->timestamp(),
+ 'start' => $start,
+ 'end' => $this->end,
'methods' => array_keys($methods),
'params' => $methods,
'title' => $this->getTitle($user),
return array(
'id' => $this->uid,
'user' => $user,
- 'start' => $this->due - $this->alarm * 60,
+ 'start' => new Horde_Date($this->due - $this->alarm * 60),
'methods' => array_keys($methods),
'params' => $methods,
'title' => $this->name,