Skip to content

Commit

Permalink
Always convert to local timezone when importing from AS events.
Browse files Browse the repository at this point in the history
Possible fix for Bug: 10991
  • Loading branch information
mrubinsk committed Mar 12, 2012
1 parent 148df6f commit c5c4d75
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions kronolith/lib/Event.php
Expand Up @@ -1232,9 +1232,12 @@ public function fromASAppointment(Horde_ActiveSync_Message_Appointment $message)
}

/* Date/times */
$tz = $message->getTimezone();
$dates = $message->getDatetime();
$this->start = $dates['start'];
$this->end = $dates['end'];
$this->start = clone($dates['start']);
$this->start->setTimezone($tz);
$this->end = clone($dates['end']);
$this->end->setTimezone($tz);
$this->allday = $dates['allday'];

/* Sensitivity */
Expand Down

0 comments on commit c5c4d75

Please sign in to comment.