Fix the time not being converted correctly.