Skip to content
This repository has been archived by the owner on Mar 11, 2019. It is now read-only.

Commit

Permalink
ruby 1.9 fix: alterado to_date para nao usar ParseDate, que foi removido
Browse files Browse the repository at this point in the history
  • Loading branch information
fmluizao committed Aug 31, 2009
1 parent d879c28 commit 1ebb82a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions brdata/lib/brdata/date_portuguese.rb
Expand Up @@ -7,7 +7,7 @@ def to_date
if /(\d{1,2})\W(\d{1,2})\W(\d{4})/ =~ self
::Date.new($3.to_i, $2.to_i, $1.to_i)
else
::Date.new(*ParseDate.parsedate(self)[0..2])
::Date.new(*::Date._parse(self, false).values_at(:year, :mon, :mday))
end
end
end
Expand Down Expand Up @@ -44,4 +44,4 @@ class NilClass
def to_s_br
""
end
end
end

0 comments on commit 1ebb82a

Please sign in to comment.