Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I moved my time up by 4 hours. Now it's even more confusing. hwclock and the taskbar are the same now (Yes, I restarted X). But the taskbar should be showing NYC time, not UTC. Date & Time now is 4 hours ahead just like I would expect hwclock to output.
Leave it set as utc for now. Now try hwclock --hctosys
Logout and login again (just to make sure).
What does the KDE clock say?
In a terminal date.
Are the times the same?
If they are the same, but incorrect, now just set the time by R-clicking the kde clock and "adjust date and time".
Well, yes & no!
I am doing other things, and we are cross-posting, which isn't helping either!
Time is complicated, because we have this (stupid?) system where it is "different" times all over the world at the same time !
So for me it is 16:57 and for you it is probably 11:57, or was at any rate.
So to introduce some sanity, most people run their hardware clock as UTC. When you want to know the time, you do not read the hardware clock. Instead you make a system-call that says "what time is it?" The kernel reads the HW clock, and then makes adjustments according to your timezone, for offset from GMT or UTC and appropriate adjustments for "Summer time" or "Daylight saving", according to the date.
Your times were showing differently because you had the HW clock set to localtime, and the kernel thought it was UTC, so it applied the UTC/GMC offsets and "Daylight saving" adjustments when it shouldn't have.
Grrrr! This is doing my head in
Please try hwclock --hctosys --localtime (You may need to be root to do this)
Then logout, login, check your KDE clock, and date commands.
FWIW I get this:
tgar@vaio:~$ date
Sun Jul 1 17:30:09 BST 2007
It says BST because we are on British Summer Time (Edit: So perhaps my HW clock is really set to localtime)
My KDE clock says the same time, and I have its timezone set to[*]Local Time Zone
This sort of problem really annoys me, and I like to get it fixed.
At the moment, I'm not quite sure what settings you currently have, so....
Please be so good as to reboot (if you haven't done so since you last messed with anything to do with time).
Then give me the outputs from the following commands: cat /etc/adjtime
cat /etc/default/rcS | grep UTC
cat /etc/timezone
date
And tell me what time the KDE clock is showing at the time you ran those commands above.
Then I'll try and work out what is going wrong
I was hoping that you'd also tell me what time the KDE clock said at the time you issued those commands.
Try this:
Edit /etc/default/rcS and set UTC=yes
Reboot
As root, run tzconfig. "Change" your timezone to New_York even if that is what it says is already selected.
R-Click your KDE clock and set it to the correct local time and date.
Now post the result of your ./TimeFix script and the time as shown by the KDE clock.
I had exactly the same problem and went to your discussion to find a solution. I stumbled onto the solution on my own. Using the KDE GUI I went to System/Time and Date. It did not show a time zone selected so I selected Denver. That seemed to change nothing. I went to System/Time and Date again. It showed the time 7 hours behind what it is in Mountain. I tried changing the time to the current Mountain time. That fixed the problem. Now date gives the same time as the task bar.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.