lib/timespan/compare.rb in timespan-0.2.8 vs lib/timespan/compare.rb in timespan-0.3.1
- old
+ new
@@ -20,10 +20,10 @@
module Compare
include Comparable
def time_left time = nil
- time_compare = time || Time.now
+ time_compare = time || now
diff = end_time - time_compare
Timespan::TimeDuration.new(diff)
end
def expired?
\ No newline at end of file