aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/mauve_time.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mauve/mauve_time.rb')
-rw-r--r--lib/mauve/mauve_time.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mauve/mauve_time.rb b/lib/mauve/mauve_time.rb
index 2251c53..79fa4f3 100644
--- a/lib/mauve/mauve_time.rb
+++ b/lib/mauve/mauve_time.rb
@@ -124,7 +124,7 @@ class Time
#
# Make sure now is the correct class
#
- now now.to_time if now.is_a?(DateTime)
+ now = now.to_time if now.is_a?(DateTime)
raise ArgumentError, "now must be a Time" unless now.is_a?(Time)