diff options
Diffstat (limited to 'apps/calendar')
-rw-r--r-- | apps/calendar/ajax/moveevent.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/calendar/ajax/moveevent.php b/apps/calendar/ajax/moveevent.php index d18c25eb517..725894ab43c 100644 --- a/apps/calendar/ajax/moveevent.php +++ b/apps/calendar/ajax/moveevent.php @@ -63,7 +63,7 @@ $startunix = mktime($starttimearray[0], $starttimearray[1], 0, $startdatearray[1 $enddatearray = explode("-", $enddate); $endtimearray = explode(":", $endtime); $endunix = mktime($endtimearray[0], $endtimearray[1], 0, $enddatearray[1], $enddatearray[0], $enddatearray[2]); -$difference = $endunix - $startunix;echo $difference . "\n"; +$difference = $endunix - $startunix; if(strlen($newdate) > 10){ $newdatestringarray = explode("-", $newdate); if($newdatestringarray[1] == "allday"){ @@ -85,9 +85,9 @@ if($allday == true){ unset($caldata["allday"]); } $caldata["from"] = date("d-m-Y", $newstartunix); -$caldata["fromtime"] = date("H:i", $newstartunix); echo $caldata["fromtime"]; +$caldata["fromtime"] = date("H:i", $newstartunix); $caldata["to"] = date("d-m-Y", $newendunix); -$caldata["totime"] = date("H:i", $newendunix); echo $caldata["totime"]; +$caldata["totime"] = date("H:i", $newendunix); //modified part of editevent.php $vcalendar = Sabre_VObject_Reader::read($data["calendardata"]); OC_Calendar_Object::updateVCalendarFromRequest($caldata, $vcalendar); |