Permalink
Browse files

ignore dates from formula cells. Need to consider how to handle

  • Loading branch information...
1 parent ee3d816 commit 1efb9abcd6c054fc44496973e33368a838742e0f Hugh McGowan committed Jun 28, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/roo/excel.rb
View
1 lib/roo/excel.rb
@@ -389,6 +389,7 @@ def read_cells(sheet=nil)
# Test the cell to see if it's a valid date/time.
def date_or_time?(row, idx)
+ return false if row.at(idx).class == Spreadsheet::Formula
format = row.format(idx)
if format.date_or_time?
cell = row.at(idx)

0 comments on commit 1efb9ab

Please sign in to comment.