From 5c4944fe66247cad8ff2a8c76fd9898e2890e885 Mon Sep 17 00:00:00 2001 From: terrence Date: Thu, 12 Apr 2018 18:45:29 +0300 Subject: [PATCH] [FIX] datetime format. --- web_timeline/static/src/js/web_timeline.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web_timeline/static/src/js/web_timeline.js b/web_timeline/static/src/js/web_timeline.js index 2f9de682..53b5eeff 100644 --- a/web_timeline/static/src/js/web_timeline.js +++ b/web_timeline/static/src/js/web_timeline.js @@ -430,10 +430,10 @@ 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'), + str_to_datetime(new moment(start).format('YYYY-MM-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'), + str_to_datetime(new moment(end).format('YYYY-MM-DD hh:mm:ss'), self.fields[self.fields_view.arch.attrs.date_stop].type); data[self.fields_view.arch.attrs.default_group_by] = group;