commit ad5aa0efae0064ce688197798893d092cce79f2c Author: ANKIT GUPTA Date: Tue Mar 27 12:57:16 2012 +0530 Fixed MDL-30157 issue with Enrollment time defaults from 12:00 AM to current time. diff --git a/enrol/manual/ajax.php b/enrol/manual/ajax.php index a9d5bb7..58bfdf4 100755 --- a/enrol/manual/ajax.php +++ b/enrol/manual/ajax.php @@ -101,7 +101,7 @@ switch ($action) { case 3: default: $today = time(); - $today = make_timestamp(date('Y', $today), date('m', $today), date('d', $today), 0, 0, 0); + $today = make_timestamp(date('Y', $today), date('m', $today), date('d', $today), date('H', $today), date('i', $today), date('s', $today)); $timestart = $today; break; } @@ -135,4 +135,4 @@ switch ($action) { throw new enrol_ajax_exception('unknowajaxaction'); } -echo json_encode($outcome); \ No newline at end of file +echo json_encode($outcome);