LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 07-01-2007, 10:30 AM   #16
WARnux
LQ Newbie
 
Registered: Jun 2007
Distribution: Debian with KDE
Posts: 17

Original Poster
Rep: Reputation: 0

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.

Does this seem strange to you?
 
Old 07-01-2007, 10:53 AM   #17
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
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".
 
Old 07-01-2007, 11:03 AM   #18
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
Does this seem strange to you?
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.

Now, please try what I put in post #17

Last edited by tredegar; 07-01-2007 at 11:04 AM.
 
Old 07-01-2007, 11:15 AM   #19
WARnux
LQ Newbie
 
Registered: Jun 2007
Distribution: Debian with KDE
Posts: 17

Original Poster
Rep: Reputation: 0
Nope.
My clock says: 8:12
pc:/etc/default# date
Sun Jul 1 12:11:51 UTC 2007
pc:/etc/default# hwclock
Sun 01 Jul 2007 12:12:03 PM UTC -0.314104 seconds

Should I just adjust my time now, up 4 hours?
 
Old 07-01-2007, 11:32 AM   #20
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
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

Last edited by tredegar; 07-01-2007 at 11:41 AM.
 
Old 07-01-2007, 04:58 PM   #21
WARnux
LQ Newbie
 
Registered: Jun 2007
Distribution: Debian with KDE
Posts: 17

Original Poster
Rep: Reputation: 0
Grrrr again!
The command succeeded but did nothing.
date: Sun Jul 1 21:53:12 UTC 2007
KDE: 17:53
 
Old 07-02-2007, 10:07 AM   #22
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
Grrrr again!
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
 
Old 07-02-2007, 03:04 PM   #23
WARnux
LQ Newbie
 
Registered: Jun 2007
Distribution: Debian with KDE
Posts: 17

Original Poster
Rep: Reputation: 0
PHP Code:
BEFORE reboot:
andrew@pc:~$ ./TimeFix

1
-2532.767828 1183306458 0.000000
1183306458
LOCAL

2
UTC
=no

3
America
/New_York
4
Mon Jul  2 20
:01:12 UTC 2007



AFTER reboot
:
andrew@pc:~$ ./TimeFix

1
-0.495852 1183413503 0.000000
1183413503
LOCAL

2
UTC
=no

3
America
/New_York
4
Mon Jul  2 22
:00:17 UTC 2007 

Last edited by WARnux; 07-02-2007 at 05:03 PM.
 
Old 07-03-2007, 08:34 AM   #24
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
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.
 
Old 07-03-2007, 09:12 AM   #25
WARnux
LQ Newbie
 
Registered: Jun 2007
Distribution: Debian with KDE
Posts: 17

Original Poster
Rep: Reputation: 0
I think tzconfig showed our answer:
Your current time zone is set to Unknown

I set it to New_York and I'll let you know if this does not fix it.
 
Old 12-08-2008, 06:35 PM   #26
lloydgmiller
LQ Newbie
 
Registered: Dec 2008
Posts: 2

Rep: Reputation: 0
Re: KDE system clock is wrong and right

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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
System clock correct, hardware clock wrong karlovac Linux - General 5 01-16-2009 07:19 PM
Various clock issues: Clock shows wrong time only in Knoppmyth, & CMOS time change ? davidbix General 1 04-05-2006 09:58 PM
System clock always wrong Brain Drop Fedora 1 09-09-2004 12:18 AM
Clock on wrong time bripage Linux - General 4 08-08-2002 08:45 PM
system clock wrong!!! need help pockyboy Linux - General 3 07-03-2002 06:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration