aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/mauve_time.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-06-16 18:23:52 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-06-16 18:23:52 +0100
commitf6d9144af81f2078567691614fa7831c1a116fdf (patch)
tree8dbd6f49c518e090e1b7da18cb6ebc2c70113f7a /lib/mauve/mauve_time.rb
parent4ca1b2c8db777cd1e389a227072b1cd108e23d05 (diff)
Fixed up date handling in the xmpp/email template
Changed basic notification logic in Alert.
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)