lib/vpim/date.rb in vpim-0.619 vs lib/vpim/date.rb in vpim-0.658

- old
+ new

@@ -14,10 +14,10 @@ TIME_START = Date.new(1970, 1, 1) SECS_PER_DAY = 24 * 60 * 60 # Converts this object to a Time object, or throws an ArgumentError if # conversion is not possible because it is before the start of epoch. - def to_time + def vpim_to_time raise ArgumentError, 'date is before the start of system time' if self < TIME_START days = self - TIME_START Time.at((days * SECS_PER_DAY).to_i) end