You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Strange behavior when calculating time.
The bug is reproduced on rails version 7.1.4.1, ruby 3.3.4
When calling the distance_of_time((3.days + 4.hours).to_f) method, an incorrect value is displayed.
As if hours are substituted for minutes:
Result:"3 days and 3 hours"
More examples: distance_of_time((4.days + 1.hours).to_f)
Result: "4 days and 4 hours"
distance_of_time((6.days + 23.hours).to_f, locale: :en)
Result: "6 days and 6 hours"
Version of gem: 5.3.3
On version rails 7.0.8.4 everything works correctly
The text was updated successfully, but these errors were encountered:
Strange behavior when calculating time.
The bug is reproduced on rails version 7.1.4.1, ruby 3.3.4
When
calling the distance_of_time((3.days + 4.hours).to_f)
method, an incorrect value is displayed.As if hours are substituted for minutes:
Result:
"3 days and 3 hours"
More examples:
distance_of_time((4.days + 1.hours).to_f)
Result:
"4 days and 4 hours"
distance_of_time((6.days + 23.hours).to_f, locale: :en)
Result:
"6 days and 6 hours"
Version of gem: 5.3.3
On version rails 7.0.8.4 everything works correctly
The text was updated successfully, but these errors were encountered: