aboutsummaryrefslogtreecommitdiffstats
path: root/lib/roo/excelx/cell/time.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/roo/excelx/cell/time.rb')
-rw-r--r--lib/roo/excelx/cell/time.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/roo/excelx/cell/time.rb b/lib/roo/excelx/cell/time.rb
index a1f0864..5fed1e2 100644
--- a/lib/roo/excelx/cell/time.rb
+++ b/lib/roo/excelx/cell/time.rb
@@ -13,7 +13,7 @@ module Roo
super
@format = excelx_type.last
@datetime = create_datetime(base_date, value)
- @value = link ? Roo::Link.new(link, value) : (value.to_f * 86_400).to_i
+ @value = link ? Roo::Link.new(link, value) : (value.to_f * 86_400).round.to_i
end
def formatted_value