app/models/job/show_creator.rb in artfully_ose-1.2.0.beta.1 vs app/models/job/show_creator.rb in artfully_ose-1.2.0.pre

- old
+ new

@@ -13,27 +13,22 @@ end end def perform ActiveRecord::Base.transaction do - datetimes.each do |datetime_string| + datetimes.each do |f| @show = self.event.next_show #clear the sections and replace them with whatever they entered @show.chart.sections = [] @show.chart.update_attributes_from_params(chart_params) @show.update_attributes(show_params) @show.organization = organization @show.chart_id = @show.chart.id - @show.datetime = DateTime.parse(datetime_string).change(:offset => offset(datetime_string, event.time_zone)) - @show.go!(publish) - @show.refresh_stats + @show.datetime = ActiveSupport::TimeZone.create(self.event.time_zone).parse(DateTime.parse(f).to_s) + @show.go!(publish) end end - end - - def offset(datetime_string, time_zone) - ActiveSupport::TimeZone.create(event.time_zone).parse(datetime_string).formatted_offset end end \ No newline at end of file