Commit 1905f5ae by Chris Dodge

fix variable names in date/time input parsing utility

parent 236d37b2
...@@ -180,12 +180,12 @@ function onSectionReordered() { ...@@ -180,12 +180,12 @@ function onSectionReordered() {
function getEdxTimeFromDateTimeVals(date_val, time_val, format) { function getEdxTimeFromDateTimeVals(date_val, time_val, format) {
var edxTimeStr = null; var edxTimeStr = null;
if (input_date != '') { if (date_val != '') {
if (input_time == '') if (time_val == '')
input_time = '00:00'; time_val = '00:00';
// Note, we are using date.js utility which has better parsing abilities than the built in JS date parsing // Note, we are using date.js utility which has better parsing abilities than the built in JS date parsing
date = Date.parse(input_date+" "+input_time); date = Date.parse(date_val+" "+time_val);
if (format == null) if (format == null)
format = 'yyyy-MM-ddTHH:mm'; format = 'yyyy-MM-ddTHH:mm';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment