Ubuntu linux service start date in the future

I have Ubuntu Linux VM running in TrueNAS. I’ve just noticed that when I check the status of a service, the time active, plus the logs are in the future. Is there a way to correct this?

I have RTC in UTC, but system time local Adelaide time.

Screenshot 2022-11-09 at 16.56.21

Nevermind, I seem to have fixed it by enabling all the locales on the system. Originally I tried

sudo locale-gen "en_AU.UTF-8"
sudo update-locale "en_AU.UTF-8"

That would not work. If I start and stopped a service whilke logged in it would show the correct time. Also I noticed the log in time was also in the future.

I ended up doing

sudo dpkg-reconfigure locales

and generated all the locales, not just the ones I thought would be appropriate for Australia. Now everything shows my local date/time and not in the future.


To add to this little saga, I decided to migrate from TrueNAS Core to TrueNAS Scale and didn’t need to VM after all as I could do what I wanted in Docker containers!


Coming back to the forum post with the solution you found. You the real MVP. :fist_right:

1 Like