mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
another fix for oc-1044
This commit is contained in:
parent
a113ee9e9f
commit
ca5de26bac
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ $dtstart = $vevent->DTSTART;
|
|||
$dtend = OC_Calendar_Object::getDTEndFromVEvent($vevent);
|
||||
switch($dtstart->getDateType()) {
|
||||
case Sabre_VObject_Property_DateTime::UTC:
|
||||
$timeOffset = OC_Calendar_App::$tz*60;
|
||||
$timeOffset = $_SESSION['timezone']*60;
|
||||
$newDT = $dtstart->getDateTime();
|
||||
$newDT->add(new DateInterval("PT" . $timeOffset . "M"));
|
||||
$dtstart->setDateTime($newDT);
|
||||
|
|
|
|||
Loading…
Reference in a new issue