A lot of people say you should cut off eating at least 3 hours before bed, so your body can do some churning and digestion before you sleep. The reality is that it takes food six to eight hours to pass through your stomach and small intestine into the colon… and around 36 hours for your body to be totally done with it, and it gets excreted.
Moving the window around and changing the length of your fasts is said to be good because “it keeps the body guessing…” - again, this seems largely anecdotal and YMMV.
If you’re losing weight, it’s working. Keep going. Can it work better? Maybe… but do what fits in with your lifestyle.