Actions
Bug #20334
closedTime.to_i truncates a fractional timestamp instead of rounding up
Description
Simple steps that can be executed in a ruby interactive shell
irb(main):007> t = Time.now
=> 2024-03-14 00:23:55.983885525 +0000
irb(main):008> t.to_f
=> 1710375835.9838855
irb(main):009> t.to_i
=> 1710375835
Based on the example the result of t.to_f.round
is the better result?
Actions
Like0
Like1Like0