Fix possible error with time parsing.