From 3c3ab07e2fefdff743faf8ecffaf58e90c813c95 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Tue, 21 Jan 2014 15:26:25 +0100 Subject: [PATCH] [FIX] format_value: correctly compose if block, we are doing python here... bzr revid: mat@openerp.com-20140121142625-fy8zkafcvb9wwz88 --- addons/web/static/src/js/formats.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/addons/web/static/src/js/formats.js b/addons/web/static/src/js/formats.js index 58a785b6083..3280b9f4f75 100644 --- a/addons/web/static/src/js/formats.js +++ b/addons/web/static/src/js/formats.js @@ -191,9 +191,7 @@ instance.web.format_value = function (value, descriptor, value_if_empty) { + ' ' + normalize_format(l10n.time_format)); case 'date': if (typeof(value) == "string") - // in case value is a datetime, strip to avoid time manipulation - value = value.substring(0,10); - value = instance.web.str_to_date(value); + value = instance.web.str_to_date(value.substring(0,10)); return value.toString(normalize_format(l10n.date_format)); case 'time': if (typeof(value) == "string")