I just started night shift temporarily, and I had stopped fasting because I was needing to eat to stay awake. Now that my body’s used to staying awake through the night, I find that eating from 8pm-2am works well for me, and sleeping from about 8am to 4pm.