You can certainly shift your fasting window to align with overnight hours. In fact, that is the easiest for many people to engage in prolonged fasting, because they are asleep and will not feel hungry during this time.