diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-01-05 09:08:30 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-01-05 09:08:30 -0800 |
commit | 1dbbe7b663f55c72023a06fbb97f379de6e6916f (patch) | |
tree | d3502763df4b08c0bf35efbcd14bf331fec9bfd0 /activesupport/lib/active_support/core_ext/time | |
parent | 3040940ab5576d8ceb17fa3cc83223815371be7c (diff) | |
parent | c766f3e4b013cf4bcc4ad9ba64636bbf944b320c (diff) | |
download | rails-1dbbe7b663f55c72023a06fbb97f379de6e6916f.tar.gz rails-1dbbe7b663f55c72023a06fbb97f379de6e6916f.tar.bz2 rails-1dbbe7b663f55c72023a06fbb97f379de6e6916f.zip |
Merge pull request #4316 from wrozka/time_advance_nsec
Time advance nsec bug
Diffstat (limited to 'activesupport/lib/active_support/core_ext/time')
-rw-r--r-- | activesupport/lib/active_support/core_ext/time/calculations.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/time/calculations.rb b/activesupport/lib/active_support/core_ext/time/calculations.rb index f3235d11bb..5e433f5dd9 100644 --- a/activesupport/lib/active_support/core_ext/time/calculations.rb +++ b/activesupport/lib/active_support/core_ext/time/calculations.rb @@ -78,7 +78,7 @@ class Time options[:hour] || hour, options[:min] || (options[:hour] ? 0 : min), options[:sec] || ((options[:hour] || options[:min]) ? 0 : sec), - options[:usec] || ((options[:hour] || options[:min] || options[:sec]) ? 0 : usec) + options[:usec] || ((options[:hour] || options[:min] || options[:sec]) ? 0 : Rational(nsec, 1000)) ) end |