aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2012-05-18 14:10:25 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2012-05-18 14:10:25 -0700
commit40bdf553a047c9b397cacd04cfcc6328381de3c0 (patch)
treeecc3ec0f522cb8998a8bb2fe4ec172ec24898a5f /activesupport/lib/active_support/core_ext
parent8b4ecbebaa402610d1a21bb012efdbb24da1d110 (diff)
parentdcdde7da481e11660634278a8004175a1ce20f39 (diff)
downloadrails-40bdf553a047c9b397cacd04cfcc6328381de3c0.tar.gz
rails-40bdf553a047c9b397cacd04cfcc6328381de3c0.tar.bz2
rails-40bdf553a047c9b397cacd04cfcc6328381de3c0.zip
Merge pull request #6183 from nashby/fix-issue-6179
wrap time ranges with timezones
Diffstat (limited to 'activesupport/lib/active_support/core_ext')
-rw-r--r--activesupport/lib/active_support/core_ext/time/calculations.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activesupport/lib/active_support/core_ext/time/calculations.rb b/activesupport/lib/active_support/core_ext/time/calculations.rb
index a0f610d60c..92b8417150 100644
--- a/activesupport/lib/active_support/core_ext/time/calculations.rb
+++ b/activesupport/lib/active_support/core_ext/time/calculations.rb
@@ -253,7 +253,7 @@ class Time
:hour => 23,
:min => 59,
:sec => 59,
- :usec => 999999.999
+ :usec => Rational(999999999, 1000)
)
end
@@ -268,7 +268,7 @@ class Time
change(
:min => 59,
:sec => 59,
- :usec => 999999.999
+ :usec => Rational(999999999, 1000)
)
end
@@ -288,7 +288,7 @@ class Time
:hour => 23,
:min => 59,
:sec => 59,
- :usec => 999999.999
+ :usec => Rational(999999999, 1000)
)
end
alias :at_end_of_month :end_of_month
@@ -321,7 +321,7 @@ class Time
:hour => 23,
:min => 59,
:sec => 59,
- :usec => 999999.999
+ :usec => Rational(999999999, 1000)
)
end
alias :at_end_of_year :end_of_year