They set a clock to Mecca time, and he prayed according to that.
Feh.That takes care of the time.
Are you aware what "facing mecca" means in space?