From cfa981480eb3ee03b6d9615567b3dce968d447ab Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 14 Jan 2014 13:32:08 +0000 Subject: [PATCH] Fix selecting 00:00 in datetime widget re-set to current time --- etemplate/js/et2_widget_date.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_date.js b/etemplate/js/et2_widget_date.js index 2818bc2e4f..b39cb644bc 100644 --- a/etemplate/js/et2_widget_date.js +++ b/etemplate/js/et2_widget_date.js @@ -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);