I used a Steinel nightmatic photocell after previous issues with cheaper versions off eBay.
Lights on at dusk, turn off at 9:45pm and then back on at 4:15am until 8am
The cheaper ones don’t have the timer adjustment and the others I tried were very hit and miss.