Skip to content

Commit

Permalink
[FIX][website_event_excerpt_img] Use event's timezone. (#57)
Browse files Browse the repository at this point in the history
[FIX][website_event_excerpt_img] Use event's timezone.

Without this patch, the event's start and end dates (and times) will be inaccurate.
  • Loading branch information
yajo authored and pedrobaeza committed Sep 16, 2016
1 parent 1c4ddb5 commit bb1cb4f
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
Original file line number Diff line number Diff line change
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.1.0",
"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
Original file line number Diff line number Diff line change
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 bb1cb4f

Please sign in to comment.