[FIX] email_template: encode date/datetime format

See more details here: odoo/odoo@6191e3f6d0

This commit closes #13704
This commit is contained in:
Jeremy Kersten 2016-10-11 17:04:36 +02:00
parent ecb6055b0f
commit f4aae1c58b
1 changed files with 2 additions and 2 deletions

View File

@ -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: