Skip to content

Commit

Permalink
[FIX][website_event_excerpt_img] Use event's timezone.
Browse files Browse the repository at this point in the history
Without this patch, the event's start and end dates (and times) will be inaccurate.
  • Loading branch information
yajo committed Sep 16, 2016
1 parent 1c4ddb5 commit cea6ebd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion website_event_excerpt_img/__openerp__.py
Expand Up @@ -4,7 +4,7 @@
{
"name": "Excerpt + Image in Events",
"summary": "New layout for event summary, including an excerpt and image",
"version": "8.0.1.0.0",
"version": "8.0.1.0.1",
"category": "Website",
"website": "https://www.tecnativa.com",
"author": "Antiun Ingeniería S.L., Tecnativa, "
Expand Down
4 changes: 2 additions & 2 deletions website_event_excerpt_img/views/event.xml
Expand Up @@ -54,12 +54,12 @@
<i class="fa fa-clock-o"/>
<span
itemprop="startDate"
t-field="event.date_begin"
t-field="event.with_context(tz=event.date_tz).date_begin"
t-field-options='{"hide_seconds":"True"}'/>
<i>to</i>
<span
itemprop="endDate"
t-field="event.date_end"
t-field="event.with_context(tz=event.date_tz).date_end"
t-field-options='{"hide_seconds":"True"}'/>
</div>
<div
Expand Down

0 comments on commit cea6ebd

Please sign in to comment.