diff options
author | Ronak Jangir <ronakjangir47@gmail.com> | 2015-09-08 21:55:13 +0530 |
---|---|---|
committer | Ronak Jangir <ronakjangir47@gmail.com> | 2015-09-08 21:57:24 +0530 |
commit | 8aa476869d7180277f31f325cc09059a718f9640 (patch) | |
tree | 3bc5de19c7f801fa74068287673025d034bbfb98 /activesupport | |
parent | 269050072d53bc34d779c4f807c444aacb08a61a (diff) | |
download | rails-8aa476869d7180277f31f325cc09059a718f9640.tar.gz rails-8aa476869d7180277f31f325cc09059a718f9640.tar.bz2 rails-8aa476869d7180277f31f325cc09059a718f9640.zip |
Fixed Time conversion example for UTC time zone [ci skip]
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/core_ext/string/conversions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/string/conversions.rb b/activesupport/lib/active_support/core_ext/string/conversions.rb index 3e0cb8a7ac..fd79a40e31 100644 --- a/activesupport/lib/active_support/core_ext/string/conversions.rb +++ b/activesupport/lib/active_support/core_ext/string/conversions.rb @@ -14,7 +14,7 @@ class String # "06:12".to_time # => 2012-12-13 06:12:00 +0100 # "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 + # "2012-12-13T06:12".to_time(:utc) # => 2012-12-13 06:12:00 UTC # "12/13/2012".to_time # => ArgumentError: argument out of range def to_time(form = :local) parts = Date._parse(self, false) |