Merge pull request #1393 from nikhilgupta1211/xml_timezone

Fixes #1188 show the conference timezone in show.xml.haml
This commit is contained in:
Ana María Martínez Gómez 2017-03-31 11:34:56 +02:00 committed by GitHub
commit 81ef0bcb6a
3 changed files with 7 additions and 2 deletions

View file

@ -34,6 +34,11 @@ module ApplicationHelper
result result
end end
# Returns time with conference timezone
def time_with_timezone(time)
time.strftime('%F %R') + ' ' + @conference.timezone.to_s
end
## ##
# Checks if the voting has already started, or if it has already ended # Checks if the voting has already started, or if it has already ended
# #

View file

@ -117,7 +117,7 @@
%td %td
%b Scheduled time %b Scheduled time
%td %td
= @event.time = time_with_timezone(@event.time)
%tr %tr
%td %td
%b Submitter %b Submitter

View file

@ -16,7 +16,7 @@
%room{ name: room.name } %room{ name: room.name }
- events_in_rooms[room].each do |event| - events_in_rooms[room].each do |event|
%event{ guid: event.guid, id: event.id } %event{ guid: event.guid, id: event.id }
%date= event.time.iso8601 %date= time_with_timezone(event.time)
%start= event.time.strftime('%H:%M') %start= event.time.strftime('%H:%M')
%duration= length_timestamp(event.event_type.length) %duration= length_timestamp(event.event_type.length)
%room= event.room.name %room= event.room.name