OPNsense Forum

English Forums => General Discussion => Topic started by: Ginod on November 28, 2023, 12:24:10 PM

Title: [SOLVED] Current time is 2 hours ahead of the motherboard time
Post by: Ginod on November 28, 2023, 12:24:10 PM
I have the following problem that I cannot solve:
- OPNsense was installed in a PC whose motherboard failed.
- I moved the SSD to another PC with a very similar setup.
After this move, the firewall works normally except that the current time is 2 hours ahead of the motherboard time (the time in the BIOS is correctly matched to the local time zone).
This time difference is preserved even if I move the installation to another hardware configuration.
If I put the SSD back on the original motherboard (which I did the install on) the time is again matched to the BIOS time but I can't use this board anymore...
The version is OPNsense 23.7.8-amd64.
So what could be the cause of this time difference?

Thank you!
Title: Re: Current time is 2 hours ahead of the motherboard time
Post by: bartjsmit on November 28, 2023, 12:45:11 PM
System: Settings: General - check your time zone

Log into the console, select option 8 for shell and type: date 1140 (pick a time close to the current time).

Then go to Services: Network Time: General and configure NTP servers

Bart...
Title: Re: Current time is 2 hours ahead of the motherboard time
Post by: Ginod on November 28, 2023, 03:45:52 PM
It worked, thanks a lot!
But why does this lag happen when moving to a different motherboard?
Title: Re: [SOLVED] Current time is 2 hours ahead of the motherboard time
Post by: Patrick M. Hausen on November 28, 2023, 03:49:33 PM
You need to set your motherboard's time to UTC in the BIOS setup. This is true for all Unix like operating systems, Linux, FreeBSD, ... only Windows runs the CMOS clock in local time.
Title: Re: [SOLVED] Current time is 2 hours ahead of the motherboard time
Post by: Ginod on November 28, 2023, 03:52:12 PM
Got it, thank you very much!