mirror of
https://github.com/github/rails.git
synced 2026-02-19 02:14:20 -05:00
Ruby 1.9 compat: don't use obsolete ParseDate
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8540 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -192,7 +192,7 @@ module ActiveRecord
|
||||
end
|
||||
|
||||
def fallback_string_to_date(string)
|
||||
new_date(*ParseDate.parsedate(string)[0..2])
|
||||
new_date(*::Date._parse(string, false).values_at(:year, :mon, :mday))
|
||||
end
|
||||
|
||||
def fallback_string_to_time(string)
|
||||
|
||||
Reference in New Issue
Block a user