]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix duration bug
authorGeorg Ehrke <georg.stefan.germany@googlemail.com>
Sat, 1 Oct 2011 19:09:08 +0000 (21:09 +0200)
committerGeorg Ehrke <georg.stefan.germany@googlemail.com>
Sat, 1 Oct 2011 19:09:08 +0000 (21:09 +0200)
apps/calendar/ajax/moveevent.php

index f380fe9bf2972b116e8930e05c0f1f3715ebb59b..e2b777969daa1d12060387ca18b1fc14632eeae7 100644 (file)
@@ -70,8 +70,10 @@ if(strlen($newdate) > 10){
                $allday = true;
                $newdatestringarray[1] = "00:00";
        }else{
+               if($allday == true){
+                       $difference = 3600;
+               }
                $allday = false;
-               $difference = 3600;
        }
 }else{
        $newdatestringarray = array();