lib/spreadsheet/excel/row.rb in spreadsheet-0.8.3 vs lib/spreadsheet/excel/row.rb in spreadsheet-0.8.4

- old
+ new

@@ -56,10 +56,10 @@ end def _datetime data # :nodoc: return data if data.is_a?(DateTime) base = @worksheet.date_base date = base + data.to_f - hour = (data % 1) * 24 + hour = (data.to_f % 1) * 24 min = (hour % 1) * 60 sec = ((min % 1) * 60).round min = min.floor hour = hour.floor if sec > 59