convert timezone to conference`s timezone

This commit is contained in:
gotens1211 2017-03-05 16:26:30 +05:30
parent 61930f8572
commit 4a974e29b3
2 changed files with 8 additions and 8 deletions

View file

@ -7,14 +7,6 @@ module Admin
before_action :get_event, except: [:index, :create, :reports]
# FIXME: The timezome should only be applied on output, otherwise
# you get lost in timezone conversions...
# around_filter :set_timezone_for_this_request
def set_timezone_for_this_request(&block)
Time.use_zone(@conference.timezone, &block)
end
def index
@events = @program.events
@tracks = @program.tracks