lib/hackathon_manager.rb in hackathon_manager-0.7.1 vs lib/hackathon_manager.rb in hackathon_manager-0.8.0

- old
+ new

@@ -3,12 +3,12 @@ module HackathonManager def self.reload_config(app) hackathon = app.config_for(:hackathon) # Applications without a specified config.time_zone will parse - # this as a string instead of a DateTime + # this as a string instead of a Time if hackathon['last_day_to_apply'].is_a?(String) - hackathon['last_day_to_apply'] = DateTime.parse(hackathon['last_day_to_apply']) + hackathon['last_day_to_apply'] = Time.parse(hackathon['last_day_to_apply']) end app.config.hackathon = hackathon end