[MERGE] [FIX] format_value: when formating to date, make sure not converting from a datetime string as would make timezones apply and lead to a possible change of day

bzr revid: mat@openerp.com-20140121152521-ebgre8hv5sgddhv1
This commit is contained in:
Martin Trigaux 2014-01-21 16:25:21 +01:00
commit acbbfa68da
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ instance.web.format_value = function (value, descriptor, value_if_empty) {
+ ' ' + normalize_format(l10n.time_format));
case 'date':
if (typeof(value) == "string")
value = instance.web.auto_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")