diff options
author | Geoff Buesing <gbuesing@gmail.com> | 2009-08-05 08:19:21 -0500 |
---|---|---|
committer | Geoff Buesing <gbuesing@gmail.com> | 2009-08-05 08:26:12 -0500 |
commit | bfafe8c4055bcb8dcf7440015d95a32c9773f40b (patch) | |
tree | 62696a6bf79a4c451646dbc8d115987085cbe5cb /activerecord/lib/active_record/connection_adapters/abstract | |
parent | f8d3c72c39ad209abca7f3613f91fb3a03805261 (diff) | |
download | rails-bfafe8c4055bcb8dcf7440015d95a32c9773f40b.tar.gz rails-bfafe8c4055bcb8dcf7440015d95a32c9773f40b.tar.bz2 rails-bfafe8c4055bcb8dcf7440015d95a32c9773f40b.zip |
Revert "fallback_string_to_date sets Date._parse comp arg to true, so that strings with two-digit years, e.g. '1/1/09', are interpreted as modern years" [#2019 state:wontfix]
This reverts commit 55d1d12c32a1b99f3f07d2346b49a63650ba2e9d.
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/abstract')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb index f4e8fe6a38..24c734cddb 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb @@ -201,7 +201,7 @@ module ActiveRecord end def fallback_string_to_date(string) - new_date(*::Date._parse(string, true).values_at(:year, :mon, :mday)) + new_date(*::Date._parse(string, false).values_at(:year, :mon, :mday)) end def fallback_string_to_time(string) |