Fixes the time because the timer uses milliseconds.