[FIX] email_template: encode date/datetime format
See more details here: odoo/odoo@6191e3f6d0 This commit closes #13704
This commit is contained in:
parent
ecb6055b0f
commit
f4aae1c58b
|
@ -67,8 +67,8 @@ def format_tz(pool, cr, uid, dt, tz=False, format=False, context=None):
|
|||
format_date = lang_params.get("date_format", '%B-%d-%Y')
|
||||
format_time = lang_params.get("time_format", '%I-%M %p')
|
||||
|
||||
fdate = ts.strftime(format_date)
|
||||
ftime = ts.strftime(format_time)
|
||||
fdate = ts.strftime(format_date).decode('utf-8')
|
||||
ftime = ts.strftime(format_time).decode('utf-8')
|
||||
return "%s %s%s" % (fdate, ftime, (' (%s)' % tz) if tz else '')
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue