[FIX] website_mail_channel: fix datetime typo in new API migration

The migration to new API changed `import datetime` to
`from datetime import datetime`, subtly breaking existing
calls.

See also 8250762fe8
This commit is contained in:
Olivier Dony
2016-07-14 16:52:40 +02:00
parent 78fee4b6b0
commit a78c2e3d39
@@ -30,7 +30,7 @@ class MailGroup(http.Controller):
""" date is (of course) a datetime so start and end are datetime
strings, but we just want date strings
"""
return (datetime.datetime
return (datetime
.strptime(dt, tools.DEFAULT_SERVER_DATETIME_FORMAT)
.date() # may be unnecessary?
.strftime(tools.DEFAULT_SERVER_DATE_FORMAT))