If you are looking for the simplest solution (or others seeing this in the future) it would be to turn the lights off after a set number of hours rather then at a specific time.
Just set a turn off when ever the sun sets, with a (for example ) three hour delay.