lib/edtf/compatibility.rb in edtf-0.0.2 vs lib/edtf/compatibility.rb in edtf-0.0.3

- old
+ new

@@ -1,9 +1,9 @@ -unless Date.respond_to?(:to_time) +unless DateTime.respond_to?(:to_time) require 'time' - class Date + class DateTime def to_time Time.parse(to_s) end end \ No newline at end of file