fix end_date

This commit is contained in:
ivan deng
2017-11-16 03:48:38 +08:00
parent ba8d281846
commit a4a981f93b

View File

@@ -226,6 +226,7 @@ ListView.include({
_.each(self.columns, function (value, key, list) { _.each(self.columns, function (value, key, list) {
if (value.name == field) { if (value.name == field) {
field_type = value.type; field_type = value.type;
return false;
} }
}); });
@@ -240,7 +241,7 @@ ListView.include({
//日期时间处理utc //日期时间处理utc
start_date = moment(moment(start_date, time.strftime_to_moment_format(l10n.date_format))).format('YYYY-MM-DD 00:00:00'); start_date = moment(moment(start_date, time.strftime_to_moment_format(l10n.date_format))).format('YYYY-MM-DD 00:00:00');
start_utc = moment(start_date) start_utc = moment(start_date)
domain.push([field, '>=', start_utc]); domain.push([field, '<=', start_utc]);
} }
} }
if (end_date) { if (end_date) {