Skip to content

Commit

Permalink
Ensure the exception is the same timezone as the the start time.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Mar 11, 2014
1 parent 6a0c685 commit 111a5bd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions kronolith/lib/Event.php
Expand Up @@ -1793,9 +1793,11 @@ public function toASAppointment(array $options = array())
'protocolversion' => $options['protocolversion']));
// Kronolith stores the date only, but some AS clients need
// the datetime.
$st = new Horde_Date($deleted);
$st->hour = $this->start->hour;
$st->min = $this->start->min;
list($year, $month, $mday) = sscanf($deleted, '%04d%02d%02d');
$st = clone $this->start;
$st->year = $year;
$st->month = $month;
$st->mday = $mday;
$e->setExceptionStartTime($st);
$e->deleted = true;
$message->addException($e);
Expand Down

0 comments on commit 111a5bd

Please sign in to comment.