Use round() rather than MathUtils::round_int() for time, and modulate to UINT

Fixes #14205.

MathUtils::round_int() works only for values up to 2^30, then asserts.  Twelve and a half days.