You are not logged in.
When I attempt to use software time on my computer, I get an error and UTC is set to 7 hours in the future. If I do not use the software clock's network synchronization, then I have a time discrepancy between the internet and my computer. Any help would be much appreciated, and thank you in advance.
Last edited by KARNVORbeefRAGE (2014-03-02 18:34:56)
"Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine."
-Nikola Tesla
Offline
Is this a dual boot with Windows? Also, is /etc/timezone set properly?
Offline
What's the output of
timedatectlOffline
Thanks for the replies! Yes I do have a dual boot with windows 7, it was installed first and Arch second.
Here is the output:
Local time: Sun 2014-03-02 02:22:04 UTC
Universal time: Sun 2014-03-02 02:22:04 UTC
RTC time: Sun 2014-03-02 02:22:04
Timezone: n/a (UTC, +0000)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: yes
DST active: n/a
Warning: The RTC is configured to maintain time in the local timezone. This
mode is not fully supported and will create various problems with time
zone changes and daylight saving adjustments. If at all possible use
RTC in UTC, by calling 'timedatectl set-local-rtc 0'. I see that it says RTC is configured in the local timezone, and as the Archwiki states: Windows defaults to local. Does this mean that I will have to reconfigure Windows to UTC?
Last edited by KARNVORbeefRAGE (2014-03-02 02:26:51)
"Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine."
-Nikola Tesla
Offline
Yes, making Windows use UTC could fix this.
Last edited by karol (2014-03-02 02:27:30)
Offline
Alright, I will try that and report back. Thank you very much.
"Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine."
-Nikola Tesla
Offline
Don't forget to turn off window's ntp functionality. Back when I last played with windows, you could make a registry entry to have it use UTC, but I couldn't figure out how to make the time sync actually sync the clock to UTC. So the time just got totally crazy.
Offline
Ok, I now have the correct output after a little fiddling:
Local time: Sat 2014-03-01 19:06:22 UTC
Universal time: Sat 2014-03-01 19:06:22 UTC
RTC time: Sat 2014-03-01 19:06:22
Timezone: n/a (UTC, +0000)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no
DST active: n/a Unfortunately, when accessing sites that display the time of posting like google+ I still see the times in the future 2AM on March 2nd. Thank you WonderWoofy, I will check that.
I am also still unable to use the Public Time Server through KDE 4's date and time auto adjust feature in the settings, although that may be fixed after turning it off in Windows as WonderWoofy suggested.
Last edited by KARNVORbeefRAGE (2014-03-02 03:12:34)
"Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine."
-Nikola Tesla
Offline
Alright I have just deactivated the ntp on Windows, but I have another piece that may help. Whenever I run
ntpd my time returns to the improper time, but is matches the network time of websites such as google+.
My time now looks as such:
Local time: Sun 2014-03-02 03:30:00 UTC
Universal time: Sun 2014-03-02 03:30:00 UTC
RTC time: Sat 2014-03-01 19:29:57
Timezone: n/a (UTC, +0000)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no
DST active: n/aLast edited by KARNVORbeefRAGE (2014-03-02 03:35:52)
"Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine."
-Nikola Tesla
Offline
Did you actually set up /etc/localtime to point to your proper timezone?
Offline
Yeah, during the install I set it to /US/Pacific, and I had recently set it to that to be sure... interestingly it now reads as UTC as the timezone.
"Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine."
-Nikola Tesla
Offline
what is the output of `ls -l /etc/localtime`?
Offline
-rw-r--r-- 4 root root 2819 Dec 20 11:36 /etc/localtime"Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine."
-Nikola Tesla
Offline
That's not even a symlink, let alone one pointing to a correct time zone. Reread this: https://wiki.archlinux.org/index.php/Beginners'_Guide#Time_zone
Offline
Follow the link Scimmia posted. Read it carefully because you thought you did it but didn't. I think you should focus on the "Create a symbolic link /etc/localtime/ ...." If you had done so, your output should be something like
ls -l /etc/localtime
lrwxrwxrwx 1 root root 34 Jan 12 21:14 /etc/localtime -> /usr/share/zoneinfo/Canada/PacificGood luck!
Offline
I just reset it using
timedatectl set-timezone US/PacificIt wouldn't let me recreate the link from the initial install via
ln -s /usr/share/zoneinfo/US/Pacific /etc/localtimeMy new output is:
lrwxrwxrwx 1 root root 32 Mar 2 21:45 /etc/localtime -> ../usr/share/zoneinfo/US/PacificLast edited by KARNVORbeefRAGE (2014-03-02 05:46:15)
"Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine."
-Nikola Tesla
Offline
It wouldn't let me recreate the link from the initial install via
ln -s /usr/share/zoneinfo/US/Pacific /etc/localtime
Next time, please post the error, for completeness sake.
Offline
Sorry
ln: failed to create symbolic link ‘/etc/localtime’: File exists"Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine."
-Nikola Tesla
Offline
Are you sure it was this error?
Offline
Yes, and everything was set to UTC. Unfortunately it no longer displays that so I cannot show the old output, the new output is currently:
Local time: Sat 2014-03-01 21:58:10 PST
Universal time: Sun 2014-03-02 05:58:10 UTC
RTC time: Mon 2014-03-03 05:58:09
Timezone: US/Pacific (PST, -0800)
NTP enabled: yes
NTP synchronized: no
RTC in local TZ: no
DST active: no
Last DST change: DST ended at
Sun 2013-11-03 01:59:59 PDT
Sun 2013-11-03 01:00:00 PST
Next DST change: DST begins (the clock jumps one hour forward) at
Sun 2014-03-09 01:59:59 PST
Sun 2014-03-09 03:00:00 PDT"Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine."
-Nikola Tesla
Offline
Well, it does exist. One needs to delete the file that is there before creating a soft link.
The real question is, from whence came that file? Did you create it? If so, Why? If not, are you sure this is an Arch Linux installation?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
I just removed the file:
rm -r /etc/localtimeand relinked it:
ln -s /usr/share/zoneinfo/US/Pacific /etc/localtimethe output of
ls -l /etc/localtimeis as follows:
lrwxrwxrwx 1 root root 30 Mar 1 22:04 /etc/localtime -> /usr/share/zoneinfo/US/PacificThe command:
timedatectlgives me the output
Local time: Sat 2014-03-01 22:04:41 PST
Universal time: Sun 2014-03-02 06:04:41 UTC
RTC time: Mon 2014-03-03 06:04:40
Timezone: US/Pacific (PST, -0800)
NTP enabled: yes
NTP synchronized: no
RTC in local TZ: no
DST active: no
Last DST change: DST ended at
Sun 2013-11-03 01:59:59 PDT
Sun 2013-11-03 01:00:00 PST
Next DST change: DST begins (the clock jumps one hour forward) at
Sun 2014-03-09 01:59:59 PST
Sun 2014-03-09 03:00:00 PDTFor screenfetch:
-`
.o+`
`ooo/ OS: Unknown rolling
`+oooo: Kernel: x86_64 Linux 3.13.5-1-ARCH
`+oooooo: Uptime: 1h 16m
-+oooooo+: Packages: 1070
`/:-:++oooo+: Shell: bash 4.2.45
`/++++/+++++++: Resolution: 1920x1080
`/++++++++++++++: DE: KDE 4.12.2
`/+++ooooooooooooo/` WM: KWin
./ooosssso++osssssso+` WM Theme: Aurorae
.oossssso-````/ossssss+` GTK Theme:
-osssssso. :ssssssso. CPU: AMD FX-8350 Eight-Core @ 4GHz
:osssssss/ osssso+++. GPU: GeForce GTX 650 Ti
/ossssssss/ +ssssooo/- RAM: 1298MB / 7888MB
`/ossssso+/:- -:/+osssso+-
`+sso+:-` `.-/+oso:
`++:. `-/+/
.` `/ For proof that this is Arch Linux, I apologize for my troubles I am just trying to understand this.
"Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine."
-Nikola Tesla
Offline
I have now come up with the following output:
Local time: Sun 2014-03-02 06:58:40 UTC
Universal time: Sun 2014-03-02 06:58:40 UTC
RTC time: Sun 2014-03-02 06:58:39
Timezone: n/a (UTC, +0000)
NTP enabled: yes
NTP synchronized: no
RTC in local TZ: no
DST active: n/aPlease let me know if this is a step forward or a step back from the previous result. Again thank you all for your time, and I sincerely apologize for all the trouble.
I also still have for my symlink:
lrwxrwxrwx 1 root root 21 Mar 2 06:53 /etc/localtime -> /usr/share/US/PacificLast edited by KARNVORbeefRAGE (2014-03-02 07:03:57)
"Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine."
-Nikola Tesla
Offline
Well....
Your RTC is set to UTC. That is good.
Your timezone link is still hosed. The link should be to /usr/share/zoneinfo/US/Pacific (Note the emphasis)
NTP is not synchronized. That could take several minutes. If it never synchronizes. we need to look at what is happening with tools like ntpq, ntpdc, or ntptrace
Edit: Also I note that your systems perception of UTC is about correct based upon the time that you posted.
Last edited by ewaller (2014-03-02 16:10:03)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Doh, that was a bonehead move it's fixed:
Local time: Sun 2014-03-02 09:20:38 PST
Universal time: Sun 2014-03-02 17:20:38 UTC
RTC time: Sun 2014-03-02 17:20:38
Timezone: US/Pacific (PST, -0800)
NTP enabled: yes
NTP synchronized: no
RTC in local TZ: no
DST active: no
Last DST change: DST ended at
Sun 2013-11-03 01:59:59 PDT
Sun 2013-11-03 01:00:00 PST
Next DST change: DST begins (the clock jumps one hour forward) at
Sun 2014-03-09 01:59:59 PST
Sun 2014-03-09 03:00:00 PDTAfter using ntpd, ntp is labeled synchronized but I don't believe it is really connecting as the command "ntpdtrace" results in:
localhost.localdomain: stratum 3, offset 0.000000, synch distance 0.057828
74.120.8.2: timed out, nothing received
***Request timed out"Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine."
-Nikola Tesla
Offline