lib/spreadsheet/excel/row.rb in spreadsheet-0.6.1.5 vs lib/spreadsheet/excel/row.rb in spreadsheet-0.6.1.6

- old
+ new

@@ -53,10 +53,10 @@ end def enriched_data idx, data # :nodoc: res = nil if link = @worksheet.links[[@idx, idx]] res = link - elsif fmt = format(idx) + elsif data.is_a?(Numeric) && fmt = format(idx) res = if fmt.datetime? || fmt.time? _datetime data elsif fmt.date? _date data end