diff --git a/app/controllers/calendar/date.php b/app/controllers/calendar/date.php
index fea47d2ba88789e170f8fce4bb9980be40e217ed..e4030a5a423aaacb448d7e9c8083115a557bfbb7 100644
--- a/app/controllers/calendar/date.php
+++ b/app/controllers/calendar/date.php
@@ -356,8 +356,16 @@ class Calendar_DateController extends AuthenticatedController
         }
 
         $this->all_day_event = false;
-        if ($mode === 'add' && Request::get('all_day') === '1') {
+        if ($mode === 'add' && Request::bool('all_day')) {
             $this->all_day_event = true;
+            //Check for a fullcalendar all-day event ending. In that case, remove one second to have an all-day event
+            //that abides to the Stud.IP rules.
+            $end = new DateTime();
+            $end->setTimestamp($this->date->end);
+            if ($end->format('His') === '000000') {
+                $end = $end->sub(new DateInterval('PT1S'));
+            }
+            $this->date->end = $end->getTimestamp();
         } else {
             $begin = new DateTime();
             $begin->setTimestamp(intval($this->date->begin));