Skip to content
Snippets Groups Projects
Commit 04a56d8f authored by Denis Ledoux's avatar Denis Ledoux
Browse files

[FIX] website_blog: controllers blog expects a date, not a datetime

parent 23df2ec2
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ class WebsiteBlog(http.Controller):
groups = blog_post_obj.read_group(request.cr, request.uid, [], ['name', 'create_date'],
groupby="create_date", orderby="create_date asc", context=request.context)
for group in groups:
group['date'] = "%s_%s" % (group['__domain'][0][2], group['__domain'][1][2])
group['date'] = "%s_%s" % (group['__domain'][0][2][:10], group['__domain'][1][2][:10])
return groups
@http.route([
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment