diff options
Diffstat (limited to 'modules-available/exams/page.inc.php')
-rw-r--r-- | modules-available/exams/page.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/exams/page.inc.php b/modules-available/exams/page.inc.php index e5129d38..78d5b21c 100644 --- a/modules-available/exams/page.inc.php +++ b/modules-available/exams/page.inc.php @@ -29,8 +29,8 @@ class Page_Exams extends Page if (Request::isPost()) { /* process form-data */ $locationid = Request::post('location'); - $starttime = Request::post('starttime'); - $endtime = Request::post('endtime'); + $starttime = Request::post('starttime_date') . " " . Request::post('starttime_time'); + $endtime = Request::post('endtime_date') . " " . Request::post('endtime_time'); $res = Database::exec("INSERT INTO exams(locationid, starttime, endtime) VALUES(:locationid, :starttime, :endtime);", compact('locationid', 'starttime', 'endtime')); |