diff options
| -rw-r--r-- | activesupport/lib/active_support/core_ext/string/conversions.rb | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/activesupport/lib/active_support/core_ext/string/conversions.rb b/activesupport/lib/active_support/core_ext/string/conversions.rb index d2a2db32bb..6691fc0995 100644 --- a/activesupport/lib/active_support/core_ext/string/conversions.rb +++ b/activesupport/lib/active_support/core_ext/string/conversions.rb @@ -15,6 +15,7 @@ class String    #   "2012-12-13 06:12".to_time         # => 2012-12-13 06:12:00 +0100    #   "2012-12-13T06:12".to_time         # => 2012-12-13 06:12:00 +0100    #   "2012-12-13T06:12".to_time(:utc)   # => 2012-12-13 05:12:00 UTC +  #   "12/13/2012".to_time               # => ArgumentError: argument out of range    def to_time(form = :local)      parts = Date._parse(self, false)      return if parts.empty? | 
