lib/garage/utils.rb in the_garage-2.8.1 vs lib/garage/utils.rb in the_garage-2.8.2

- old
+ new

@@ -14,10 +14,10 @@ end query if query.size > 0 end def fuzzy_parse(date) - if date.is_a?(Numeric) || /^\d+$/ === date + if date.is_a?(Numeric) || /\A\d+\z/ === date Time.zone.at(date.to_i) else Time.zone.parse(date) end rescue ArgumentError