[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:
commit
acbbfa68da
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue