Browse Source

[FIX] datetime format.

pull/908/head
terrence 7 years ago
parent
commit
5c4944fe66
  1. 4
      web_timeline/static/src/js/web_timeline.js

4
web_timeline/static/src/js/web_timeline.js

@ -430,10 +430,10 @@ openerp.web_timeline = function(instance) {
} }
var data = {}; var data = {};
data[self.fields_view.arch.attrs.date_start] = data[self.fields_view.arch.attrs.date_start] =
str_to_datetime(new moment(start).format('YYYY-M-DD hh:mm:ss'),
str_to_datetime(new moment(start).format('YYYY-MM-DD hh:mm:ss'),
self.fields[self.fields_view.arch.attrs.date_start].type); self.fields[self.fields_view.arch.attrs.date_start].type);
data[self.fields_view.arch.attrs.date_stop] = data[self.fields_view.arch.attrs.date_stop] =
str_to_datetime(new moment(end).format('YYYY-M-DD hh:mm:ss'),
str_to_datetime(new moment(end).format('YYYY-MM-DD hh:mm:ss'),
self.fields[self.fields_view.arch.attrs.date_stop].type); self.fields[self.fields_view.arch.attrs.date_stop].type);
data[self.fields_view.arch.attrs.default_group_by] = group; data[self.fields_view.arch.attrs.default_group_by] = group;

Loading…
Cancel
Save