lib/timeliness/parser.rb in timeliness-0.3.1 vs lib/timeliness/parser.rb in timeliness-0.3.2

- old
+ new

@@ -14,11 +14,11 @@ default_values_by_type(time_array, type, options) unless type == :datetime make_time(time_array[0..7], options[:zone]) rescue NoMethodError => ex - raise ex unless ex.message =~ /zone/ - raise MissingTimezoneSupport, "ActiveSupport must be loaded to use timezones other than :utc and :local." + raise ex unless ex.message =~ /undefined method `(zone|use_zone|current)' for Time:Class/ + raise MissingTimezoneSupport, "ActiveSupport timezone support must be loaded to use timezones other than :utc and :local." end def make_time(time_array, zone_option=nil) return nil unless fast_date_valid_with_fallback(*time_array[0..2])