Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed importer time issue

  • Loading branch information...
commit ee74685b641279d247de9de9eab14bc7e668efca 1 parent 52a0dbc
Matthew MacLeod authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  app/models/imported_performance.rb
2  app/models/imported_performance.rb
@@ -86,7 +86,7 @@ def create_from_csv!( csv_data )
86 86 city = City.find_by_name(data[:city]) || City.first
87 87 venue = Venue.find(:first, :conditions => { :title => data[:venue_name], :city_id => city.id})
88 88 start_at = Time::parse( "#{data[:start_date]} #{data[:start_time]}").getlocal rescue nil
89   - if data[:end_date].blank
  89 + if data[:end_date].blank?
90 90 end_at = Time::parse( "#{data[:start_date]} #{data[:end_time]}" ).getlocal rescue nil
91 91 else
92 92 end_at = Time::parse( "#{data[:end_date]} #{data[:end_time]}" ).getlocal rescue nil

0 comments on commit ee74685

Please sign in to comment.
Something went wrong with that request. Please try again.