Browse Source

[FIX] datetime format.

pull/908/head
terrence 7 years ago
parent
commit
2a4550cb71
  1. 6
      web_timeline/static/src/js/web_timeline.js

6
web_timeline/static/src/js/web_timeline.js

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

Loading…
Cancel
Save