System time incorrect - all other times correct

Hi all,

I have HAOS installed on a small form 64bit PC. Up until recently, it’s all been operating perfectly fine, all automations correct etc.

Then all of a sudden, my automations had a huge delay, by a number of hours.

I dove down the path of checking all time related settings that I could find:
System-General-Time Zone is correct in HA.
My router time zone was incorrect, so fixed that.
The time and date in the BIOS of my HA PC was incorrect, so fixed that (this could have been due to a power failure??)
I displayed the time on my HA Dashboard using the Clock Card and this is correct.

But when I SSH into the setup and run the ‘date’ command, it is the wrong time zone and way off! Incorrect for even that time zone of ACST.
In the picture, the correct time is displayed by my phone at the top. The incorrect system time can be seen in the terminal.

Any ideas? I’m at a lose as to what is going on!!

THIS thread might help you to resolve the time issue.

Furthermore, if that small form 64bit PC has a CMOS battery build in (usually a CR2032) you should change it. Those batteries usually last for ~3 years. When they are depleted you can expect time issues and reset-ed BIOS settings out of the blue.

Hi Tamsy,

Yeah I read through all that. I can ping time.cloudflare.com without any issues.

I tried the template editor:

I will try the CMOS battery and see if that makes a difference…

Try rebooting the host machine (not HA restart) now that you have corrected the BIOS time.

Reboot is under Advanced options in the restart box:

1 Like

Done that multiple times…

Then why didn’t you mention it?

We’re not mind readers.

Apologies, that wasn’t meant to come across offensive, just letting you know that I have tried that. I didn’t think of mentioning it as I had just done that as a matter of course every time I made a change.

Is hwclock available with Home Assistant OS? :thinking:

Linux stores the UTC time in the bios, so it was most likely correct before you changed it.

Sounds like the HA OS time is not correct, not the hardware or HA core time.

I had this issue years ago and updating the OS fixed it, which is why I thought a reboot might.

1 Like

I did think that might be the case, but I have gone through about 3 HA updates since then and it hasn’t fixed it :frowning: