[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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user