lib/teasy/floating_time.rb in teasy-0.2.4 vs lib/teasy/floating_time.rb in teasy-0.2.5
- old
+ new
@@ -56,9 +56,10 @@
alias ctime asctime
def <=>(other)
return nil unless other.respond_to?(:to_time) &&
other.respond_to?(:utc_offset)
+
to_time - other.utc_offset <=> other.to_time.utc
end
def eql?(other)
hash == other.hash