Date and time settings after erroneously saying hardware clock was set to local time
Hi,
During the Slackware set up process I chose the option that my hardware clock was set to local time, as I was unsure as to whether hardware clock was set to local or UTC time. Running `date` in a TTY terminal while in the Slackware live session returned the UTC time, so I'm now suspecting the hardware clock was actually set to UTC time. How do I undo this unwise decision of mine to say it was set to local time, when it was probably UTC time? Presently my Slackware install is reporting the time in my timezone to be 5:30 AM 25 July 2018, when it's 3:30 pm 25 July 2018. I looked at the date and time setting of my KDE system and it said it was set to my local time (AEST, Australia/Brisbane). This is another reason why I suspect my selection in the setup program was erroneous. Thanks for your time, Brenton |
just run (as root)
Code:
timeconfig |
Thanks, I just followed your advice, but unfortunately everything is still returning the erroneous time. So I'm guessing a reboot is required, which I will do now.
|
OK then, I'm afraid the problem is persisting despite the reboot. If I run `date` I get:
Code:
Wed Jul 25 06:41:42 AEST 2018 Code:
Wed Jul 25 16:41:42 AEST 2018 |
maybe it's a misconfiguration of ntpd that is causing that.
if you do an Code:
/etc/rc.d/rc.ntpd stop Code:
sntp -s pool.ntp.org |
Made no difference, I'm afraid, still reporting it's almost 7 AM.
|
Quote:
what does the commands Code:
ls -la /var/log/packages/glibc-zoneinfo* |
I didn't stop it, as I didn't know I was meant to (I think you added that ntpd stopping command to your previous comment after I had originally read it and acted on its original instructions), but I just did and repeated your previous command (the sntp one) and the same result occurred. Your latest command returns:
Code:
-rw-r--r-- 1 root root 71376 Jul 25 2018 /var/log/packages/glibc-zoneinfo-2018e-noarch-2_slack14.2 |
when you have stopped ntpd, can you please post also the output of
Code:
sntp -s pool.ntp.org |
Here is the output:
Code:
sntp 4.2.8p11@1.3728-o Wed Feb 28 23:47:11 UTC 2018 (1) |
when you run timeconfig the second time, at the beginning of the topic, you have set your clock to localtime and not UTC, right?
this unfortunately is my last guess. |
Quote:
Code:
sntp -S pool.ntp.org |
Due to the problem I thought I had to set it to UTC, as localtime was the setting when I first noticed this problem.
Your sntp command returns: Code:
sntp 4.2.8p11@1.3728-o Wed Feb 28 23:47:11 UTC 2018 (1) Code:
sntp 4.2.8p11@1.3728-o Wed Feb 28 23:47:11 UTC 2018 (1) Code:
sntp -s pool.ntp.org |
Quote:
Quote:
|
All times are GMT -5. The time now is 09:11 AM. |