Power Timer Socket IC
It's hard to be 100% sure but my guess would be a PIC10F222-I/OT which if you check the datasheet has a marking code of 22NN where NN is an alphanumeric traceability code. Looking at the marking orientation in the datasheet and the small dot visible pin one would be at the top-right in your photo. So that gives:


Pins 1, 3 and 6 that are required for programming go to the strip of six through-holes that I suspect are for in-system programming.
Pin 5 which is Vdd seems to be decoupled to ground.
Pin 4 which is a GPIO not required for programming seems to run directly towards the relay. That's a 24V relay so I assume they're a transistor driver on the other side of the board not shown. Picking a pin not used during programming would also be a good choice for a relay output.


Pin 2 which is ground is hard to follow but maybe you could confirm that's connected to the bottom of C2 and all the above matches up with the parts of the board not shown.