Skip to content

Commit

Permalink
ignore dates from formula cells. Need to consider how to handle
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugh McGowan committed Jun 28, 2009
1 parent ee3d816 commit 1efb9ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/roo/excel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1efb9ab

Please sign in to comment.