whatever time is most convenient to you is fine.
you may find work capacity to be diminished to some extent. this mainly will effect high volume resistance training, circuit training or “metcon” type workouts, and hard cardio such as vo2max intervals and LT stuff.
i find the best exercise regimen for fasting (and in general really, for health and longeveity) is low volume big lifts like 2x5 of squat/dead/bench/ohp/clean (not all in one day, maybe two lifts per session), some accessory work but nothing crazy (like 3x8 rows, good mornings, etc), and easy cardio (maffetone or zone 2). this works very well with fasting.