mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Dr Math meets Captain Obvious.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7798 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
994c9cf0c4
commit
9319361328
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue