I think it's those two resistors overheating. The pcb colour is probably as a result.
We seem to be in the mains/psu area judging from that big capacitor.
Without a circuit diagram difficult to know what's happening - no doubt Lucien would have some words of wisdom.
I stick with my "it doesn't like your generator/inverter supply" theory.
You could see if it only get hot at night (inverter) or only gets hot daytime (generator)?
What you need is one or two good old fashioned synchronous motor driven time clocks instead
To be serious - synchronous motor timers are still available, eg
Order online at Screwfix.com. Common timing. 3-wire installation. Override facility. FREE next day delivery available, free collection in 5 minutes.
www.screwfix.com
But accuracy of clock dependent on frequency of your inverter/generator. May not be a problem