SOLVED Bios clock keeps changing

rhconcepts

Dabbler
Joined
Jan 24, 2022
Messages
13
The Bios won't boot my system at the set time because the time keeps changing. I set the time and after a reboot its showing tomorrow's date and a different time.
In freenas under general it looks right. Can anyone tell me what i'm missing. All the old post are years old and I don't see a fix for it.

Capture.PNG
 

Cloudified

Dabbler
Joined
Jan 21, 2022
Messages
42
It might be helpful if you provide the hardware that your system is running on. A lot of systems use a small battery to save the system clock in the BIOS.
 

rhconcepts

Dabbler
Joined
Jan 24, 2022
Messages
13
It might be helpful if you provide the hardware that your system is running on. A lot of systems use a small battery to save the system clock in the BIOS.
I should mention that if I change the time in the bios and reboot or shut down without letting TrueNAS boot up the clock is fine. After TrueNAS boots up that's when the time changes in the bios.
The MB is only a few days old
ASUS Prime B450M-A
AMD AMD RYZEN 5 5600G
Corsair Vengeance LPX 32GB DDR4 3600
SEAGATE SEAGATE IRONWOLF 4TB Mirror
 

Cloudified

Dabbler
Joined
Jan 21, 2022
Messages
42
I should mention that if I change the time in the bios and reboot or shut down without letting TrueNAS boot up the clock is fine. After TrueNAS boots up that's when the time changes in the bios.
The MB is only a few days old
ASUS Prime B450M-A
AMD AMD RYZEN 5 5600G
Corsair Vengeance LPX 32GB DDR4 3600
SEAGATE SEAGATE IRONWOLF 4TB Mirror

Have you tried changing the date/time and then powering the system off completely by unplugging the power cable? Then go back into the BIOS and see if the time and date is still correct. I suspect it’s hardware related. I would double check the battery on the motherboard. Is it off by an exact amount of time? Or just random? Perhaps the time zone isn’t being saved within TrueNAS.
 

rhconcepts

Dabbler
Joined
Jan 24, 2022
Messages
13
Yes if I set the time in the bios it hold if I reboot back into the bios or unplug the power it still holds. It only changes if I let the PC load TrueNAS
From what I see it sends the bios 6 hours ahead. I live in MN so central. Im trying differnt time zones in TrueNAS to see what I get
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
What do you mean by "correct time in the BIOS"? TrueNAS like all Unix systems runs the local clock in UTC and converts the time for display to your local one. So this should not be a problem unless you are dual-booting the system with an OS that expects local time in the system clock like e.g. Windows. But you don't dual boot a NAS server, do you?

HTH,
Patrick
 

rhconcepts

Dabbler
Joined
Jan 24, 2022
Messages
13
No, just a fresh install of Truenas. I use the turn on feature in the bios to start the system up everyday. I tried a lot of different time zones but the time in the bios and Truenas don’t sync up. Every time I use central time in Truenas the bios jumps six hours ahead.

But again I know it’s not the motherboard because I can set the time in there and as long as Truenas doesn’t load the time is correct. I even tried shutting the computer off for an hour and a time is still good. But after I let trueNas load then go back to the bios the time has been changed.

I’m sure no one really cares what their time shows in the bios. 98% of people using it let it run 24 seven I bet. But could someone maybe check to see if their bios is showing the correct time?
 

Cloudified

Dabbler
Joined
Jan 21, 2022
Messages
42
Well since Central Time is GMT -6, that explains that it’s a time zone issue. Perhaps try and change the time zone in TrueNAS to something else and then back again.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
I’m sure no one really cares what their time shows in the bios. 98% of people using it let it run 24 seven I bet. But could someone maybe check to see if their bios is showing the correct time?
Everything correct here. You must run your BIOS clock in UTC and set your local timezone in TrueNAS. It won't work any other way.
 

rhconcepts

Dabbler
Joined
Jan 24, 2022
Messages
13
Everything correct here. You must run your BIOS clock in UTC and set your local timezone in TrueNAS. It won't work any other way.
The only option I seen in the bios was the hour, mins and date. I’ll look for it when I get home.

I might just set the wake up time 6 hours ahead so it turns on when I want it to. It worked this morning so it’s a work around.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
The only option I seen in the bios was the hour, mins and date. I’ll look for it when I get home.
Yes. And you set the hour and minute to the current time in UTC, not in your local time. The BIOS does not have a concept of time zones but Unix assumes that the "hardware clock" is running in UTC.
 

rhconcepts

Dabbler
Joined
Jan 24, 2022
Messages
13
It's working so far. I set the bios turn on time to 1500 hours and that would be 9:00am
And the Cron job is working to turn the server off at 1:30am so im all good now.
Thanks everyone.
 

pschatz100

Guru
Joined
Mar 30, 2014
Messages
1,184
You can set the proper timezone for your system from the System/General tab. Under the localization options you can set both the Timezone and Time Format for display.
 

rhconcepts

Dabbler
Joined
Jan 24, 2022
Messages
13
You can set the proper timezone for your system from the System/General tab. Under the localization options you can set both the Timezone and Time Format for display.
Thanks that’s what I did, I was just didn’t understand why the bios was showing six hours ahead.
 
Top