hound fixes
This commit is contained in:
parent
37ec4ce746
commit
9fba9eedc7
1 changed files with 47 additions and 47 deletions
|
|
@ -1,4 +1,5 @@
|
|||
class Admin::SchedulesController < ApplicationController
|
||||
module Admin
|
||||
class SchedulesController < ApplicationController
|
||||
before_filter :verify_organizer
|
||||
skip_before_filter :verify_authenticity_token, only: [:update]
|
||||
layout "schedule"
|
||||
|
|
@ -43,12 +44,11 @@ class Admin::SchedulesController < ApplicationController
|
|||
# FIXME: Same here as in events_controller.rb. Event timezone should be applied
|
||||
# only on output
|
||||
# zone = ActiveSupport::TimeZone::new(@conference.timezone)
|
||||
# startTime = DateTime.strptime(time + zone.formatted_offset, "%Y-%m-%d %k:%M %Z")
|
||||
startTime = DateTime.strptime(time, '%Y-%m-%d %k:%M')
|
||||
event.start_time = startTime
|
||||
# start_time = DateTime.strptime(time + zone.formatted_offset, "%Y-%m-%d %k:%M %Z")
|
||||
start_time = DateTime.strptime(time, '%Y-%m-%d %k:%M')
|
||||
event.start_time = start_time
|
||||
event.save!
|
||||
render json: { 'status' => 'ok' }
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue