May I cite the case of a person in a desert on a cloudy day who has no means of knowing the time. Zuhr as he thinks that it is already due. Later on, the sun comes out and he discovers that the time for this prayer is not due yet. Does he have to repeat his prayer?

Since he has determined that his prayer was done before time and he is now within the time range of Zuhr prayer, he repeats it. If its time is over, and he is now at Asr time, but he is pretty sure that he prayed Zuhr before time, he does not have to repeat it. It is a genuine mistake that God overlooks.