Permalink
Browse files

Dr Math meets Captain Obvious.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7798 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 994c9cf commit 93193613283f98de0c1d2bc9d806331edb641951 @jeremy jeremy committed Oct 8, 2007
@@ -187,7 +187,7 @@ def fast_string_to_date(string)
# 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

0 comments on commit 9319361

Please sign in to comment.