[FIX] Fixed wrong parameter name given to astimezone introduced at revision 8954; correct parameter name is tz, not tzinfo.

bzr revid: tde@openerp.com-20130403120926-xfxtj5hsva6jzb1u
This commit is contained in:
Thibault Delavallée
2013-04-03 14:09:26 +02:00
parent 07bb17a6cb
commit a173caa0f4
+1 -1
View File
@@ -809,7 +809,7 @@ class mail_thread(osv.AbstractModel):
# as RFC2822 requires timezone offset in Date headers.
stored_date = parsed_date.replace(tzinfo=pytz.utc)
else:
stored_date = parsed_date.astimezone(tzinfo=pytz.utc)
stored_date = parsed_date.astimezone(tz=pytz.utc)
except Exception:
_logger.warning('Failed to parse Date header %r in incoming mail '
'with message-id %r, assuming current date/time.',