diff --git a/app/controllers/calendar/date.php b/app/controllers/calendar/date.php
index a618a3d9c89a4e9415c53531c34e8cc817b35fbd..5c1db1ab3442a4bd3f148633e73dfdc36d391c0f 100644
--- a/app/controllers/calendar/date.php
+++ b/app/controllers/calendar/date.php
@@ -356,7 +356,7 @@ 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.