Fix access to start_time

start_date is now the iso8601 date, which doesn't raise anything if
you have a date formatting setting.
pull/6827/head
Oliver Günther 8 years ago
parent f0717baccb
commit 50cbd5c201
  1. 2
      app/views/meetings/show.html.erb

@ -63,7 +63,7 @@ See doc/COPYRIGHT.md for more details.
<p class="author"><%= authoring @meeting.created_at, @meeting.author %></p> <p class="author"><%= authoring @meeting.created_at, @meeting.author %></p>
</div> </div>
<div class="grid-content small-6"> <div class="grid-content small-6">
<p><strong><%= Meeting.human_attribute_name(:start_time) %></strong>: <%= format_date @meeting.start_date %> <%= format_time @meeting.start_time, false %> - <%= format_time @meeting.end_time, false %> <%= Time.zone %></p> <p><strong><%= Meeting.human_attribute_name(:start_time) %></strong>: <%= format_date @meeting.start_time %> <%= format_time @meeting.start_time, false %> - <%= format_time @meeting.end_time, false %> <%= Time.zone %></p>
</div> </div>
<div class="grid-content small-6"> <div class="grid-content small-6">
<p><strong><%= Meeting.human_attribute_name(:location) %></strong>: <%=h @meeting.location %></p> <p><strong><%= Meeting.human_attribute_name(:location) %></strong>: <%=h @meeting.location %></p>

Loading…
Cancel
Save