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.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/mauve/mauve_time.rb b/lib/mauve/mauve_time.rb
index 4435098..2d9e293 100644
--- a/lib/mauve/mauve_time.rb
+++ b/lib/mauve/mauve_time.rb
@@ -28,15 +28,15 @@ class DateTime
end
def to_s_relative(*args)
- self.to_time.to_s_relative(*args)
+ self.to_s_relative(*args)
end
def to_s_human
- self.to_time.to_s_human
+ self.to_s_human
end
def in_x_hours(*args)
- self.to_time.in_x_hours(*args)
+ self.in_x_hours(*args)
end
end
@@ -135,7 +135,7 @@ class Time
#
# Make sure now is the correct class
#
- now = now.to_time if now.is_a?(DateTime)
+ now = now if now.is_a?(DateTime)
raise ArgumentError, "now must be a Time" unless now.is_a?(Time)