Permalink
Browse files

Fixed importer time issue

  • Loading branch information...
1 parent 52a0dbc commit ee74685b641279d247de9de9eab14bc7e668efca @mattmacleod committed Nov 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/imported_performance.rb
View
2 app/models/imported_performance.rb
@@ -86,7 +86,7 @@ def create_from_csv!( csv_data )
city = City.find_by_name(data[:city]) || City.first
venue = Venue.find(:first, :conditions => { :title => data[:venue_name], :city_id => city.id})
start_at = Time::parse( "#{data[:start_date]} #{data[:start_time]}").getlocal rescue nil
- if data[:end_date].blank
+ if data[:end_date].blank?
end_at = Time::parse( "#{data[:start_date]} #{data[:end_time]}" ).getlocal rescue nil
else
end_at = Time::parse( "#{data[:end_date]} #{data[:end_time]}" ).getlocal rescue nil

0 comments on commit ee74685

Please sign in to comment.