Fix time parsing