diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-10-08 05:41:19 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-10-08 05:41:19 +0000 |
commit | 93193613283f98de0c1d2bc9d806331edb641951 (patch) | |
tree | 9e83718d77244de59e049fa990be6c99136ef49d /activerecord/lib/active_record/connection_adapters/abstract | |
parent | 994c9cf0c4fa78764cf0bca2c99bc01376339749 (diff) | |
download | rails-93193613283f98de0c1d2bc9d806331edb641951.tar.gz rails-93193613283f98de0c1d2bc9d806331edb641951.tar.bz2 rails-93193613283f98de0c1d2bc9d806331edb641951.zip |
Dr Math meets Captain Obvious.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7798 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
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 0325bdbbd8..efc7cec51f 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb @@ -187,7 +187,7 @@ module ActiveRecord # Doesn't handle time zones. def fast_string_to_time(string) if string =~ Format::ISO_DATETIME - microsec = ($7.to_f * 10e6).to_i + microsec = ($7.to_f * 1_000_000).to_i new_time $1.to_i, $2.to_i, $3.to_i, $4.to_i, $5.to_i, $6.to_i, microsec end end |