Ubiquiti UniFI: wrong uptime

I never manage to fix this but the device from the Ubiquiti UniFi integration report the wrong UpTime.

I believe that some of the integration in my Raspberry PI / HAOS are using Unix epoch time

also the UniFi controller is not hosted on the same host but on a Ubiquiti UDM Pro.

E.g of the issue :

Phone 12 Pro Max Uptime

2679 weeks ago

any idea how I can fix this?

It makes a timestamp sensor, go to dev tools → states page. Find the sensor and look at the datetime string in the state column. You should find out what it should be and compare it to what it is, then report it as an issue. The timestamp is generated by this code and it might need to be modified: