diff --git a/lib/parsedate.rb b/lib/parsedate.rb index 89aeac0031..7068da40f4 100644 --- a/lib/parsedate.rb +++ b/lib/parsedate.rb @@ -7,7 +7,7 @@ module ParseDate def parsedate(str, comp=false) Date._parse(str, comp). - indexes(:year, :mon, :mday, :hour, :min, :sec, :zone, :wday) + select(:year, :mon, :mday, :hour, :min, :sec, :zone, :wday) end module_function :parsedate