1
0
Fork 0
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:
Jeremy Kemper 2007-10-08 05:41:19 +00:00
parent 994c9cf0c4
commit 9319361328

View file

@ -187,7 +187,7 @@ module ActiveRecord
# Doesn't handle time zones. # Doesn't handle time zones.
def fast_string_to_time(string) def fast_string_to_time(string)
if string =~ Format::ISO_DATETIME 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 new_time $1.to_i, $2.to_i, $3.to_i, $4.to_i, $5.to_i, $6.to_i, microsec
end end
end end