Date Time Issue?

Hi,

I checked the time and it was incorrect. I set the timezone and that did not work, set locale to GB, that did not work either, set NTP that did not work either, tried setting manually that did not work either.

Can I know how to set the time ?

VyOS is showing my time as Fri 11 Oct 2024 which is incorrect, my date time is Thu 10 Oct 2024 20:22.

Time Zone — VyOS 1.4.x (sagitta) documentation

set system time-zone <timezone>

For example, specifying US/Pacific sets the time zone to US Pacific time.

NTP — VyOS 1.4.x (sagitta) documentation

set service ntp server <address> <noselect | nts | pool | prefer>

Hi @MaurUppi

I had gone through that documentation prior to posting the question.

I’m in GMT time zone and had set it according to Europe/ but that did not work.

I will try Europe/GMT.

Unsure what the issue is, can’t seem to set Time-Zone…

vRouer-2024-10-11-18-12-38

As I recall it NTP refuses to fix the clock if it differs more than 2 hours or so.

Which is why you often see during boots something like “ntpdate -s” to set it “hard” so it gets close to realtime vs what an external NTP-server tells you. Then the local NTP process will be happy to sync your local time.

So try in bash mode to run “date -s” to set the date and time. Preferly with a “hwclock -w” afterwards to have the RTC synced and then just reboot and your NTP service should be happy to sync your local time to the external NTP-servers according to your timezone.

Another way is to manually fix the clock from the BIOS. I dont however recall if its Linux or Windows who prefers to have the BIOS clock in UTC+0 or in localtime so you might need to test both.

Thanks @Apachez

Will check this, appreciate the clarification…

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.