Conect to HA using WiFi on my Pi3+(but the time keeps going)

I Conect to HA using WiFi on my Pi3b+, every few months the time on my Pi keeps going out of sync. This seems to screw up my SSL certificate, and causes connection issues.
The only resoulition I have, is to connect via ethinet for a few days, then it goes right again.

Can any one offer me any help on this please?