Fix parse_datetime to not override value
This commit is contained in:
1 parent
b228f266ba
commit
ec49d4ea99
1 file changed
+3
-3
+3
-3
@@ -129,11 +129,11 @@
|
||||
};
|
||||
|
||||
Sao.common.parse_datetime = function(date_format, time_format, value) {
|
||||
value = jQuery.datepicker.parseDate(date_format, value);
|
||||
if (!value) {
|
||||
var date = jQuery.datepicker.parseDate(date_format, value);
|
||||
if (!date) {
|
||||
return null;
|
||||
}
|
||||
var date = Sao.DateTime(value);
|
||||
date = Sao.DateTime(date);
|
||||
var time_value = value.replace(jQuery.datepicker.formatDate(
|
||||
date_format, date), '').trim();
|
||||
var time = Sao.common.parse_time(time_format, time_value);
|
||||
|
||||
Reference in new issue
Block a user