Fix selecting 00:00 in datetime widget re-set to current time

This commit is contained in:
Nathan Gray 2014-01-14 13:32:08 +00:00
parent 6418c06b18
commit cfa981480e

View File

@ -99,7 +99,7 @@ var et2_date = et2_inputWidget.extend(
d.setMonth(date_inst.selectedMonth);
d.setDate(date_inst.selectedDay);
}
if(inst && inst.hour)
if(inst && typeof inst.hour != 'undefined')
{
d.setHours(inst.hour);
d.setMinutes(inst.minute);