LinuxQuestions.org
Visit Jeremy's Blog.
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 06-29-2007, 04:38 PM   #1
WARnux
LQ Newbie
 
Registered: Jun 2007
Distribution: Debian with KDE
Posts: 17

Rep: Reputation: 0
(Solved) KDE clock is wrong and right...


I use Debian. I live in the United States Eastern time zone, my clock on the taskbar does not add the 4 hours it needs to. But when I right click the clock it and select "Date & Time Format..." the clock in there has the correct time. What is going on. I thought the time that is shown in the Dialog box would be the time KDE would show on the taskbar.

Last edited by WARnux; 07-03-2007 at 10:21 AM.
 
Old 06-29-2007, 05:56 PM   #2
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Not quite sure, I have Debian testing with KDE on 3 computers and none of them can keep time properly. If you have an "always-on" internet connection, you can try installing ntpdate, I'm on dial-up so I have to go with hardware clock.
 
Old 06-29-2007, 07:08 PM   #3
WARnux
LQ Newbie
 
Registered: Jun 2007
Distribution: Debian with KDE
Posts: 17

Original Poster
Rep: Reputation: 0
It keeps the time fine, it's just that it's not showing the correct time on the taskbar according to my region. Like I said, in the dialog box it's always correct though.
 
Old 06-29-2007, 11:46 PM   #4
lambchops468
Member
 
Registered: Mar 2007
Location: New Jersey, USA
Distribution: Archlinux
Posts: 165

Rep: Reputation: 30
k,

the clock in KDE's kicker actually can show different time zones.



try scrolling your scroll wheel on top of it.

btw, you distro might also have an option about setting the system or BIOS time to Greenwhich mean time, so check your distro's control panels (not kde's)
 
Old 06-30-2007, 08:19 AM   #5
WARnux
LQ Newbie
 
Registered: Jun 2007
Distribution: Debian with KDE
Posts: 17

Original Poster
Rep: Reputation: 0
Something else I just noticed...when I create a file, that time is also correct!
Why won't my KDE clock show the right time? It's obvious that the system has the right time.

Selecting different time zones and scrolling through them does not fix it. I should be the same as New York, and New York time zone show the same as I have. Why is this happening. Is it a bug?
 
Old 06-30-2007, 11:51 AM   #6
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,153

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
when I create a file, that time is also correct!
So your system clock is correct.
Try R-clicking the clock-> Show Timezone-> Select "Local Timezone"
 
Old 06-30-2007, 12:49 PM   #7
WARnux
LQ Newbie
 
Registered: Jun 2007
Distribution: Debian with KDE
Posts: 17

Original Poster
Rep: Reputation: 0
It's already set to local time zone
 
Old 06-30-2007, 01:29 PM   #8
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,153

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
It's already set to local time zone
OK.
What's the output of cat /etc/timezone and cat /etc/default/rcS | grep UTC?
 
Old 06-30-2007, 02:36 PM   #9
WARnux
LQ Newbie
 
Registered: Jun 2007
Distribution: Debian with KDE
Posts: 17

Original Poster
Rep: Reputation: 0
cat /etc/timezone
America/New_York

cat /etc/default/rcS | grep UTC
UTC=no
 
Old 07-01-2007, 07:20 AM   #10
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,153

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
cat /etc/timezone
America/New_York

cat /etc/default/rcS | grep UTC
UTC=no
Those are as they should be.
What time is the KDE clock showing?
Maybe this post will help you:
http://www.linuxquestions.org/questi...104#post112104
 
Old 07-01-2007, 09:28 AM   #11
WARnux
LQ Newbie
 
Registered: Jun 2007
Distribution: Debian with KDE
Posts: 17

Original Poster
Rep: Reputation: 0
KDE: 5:23
Date & Time Format...: 9:23
hwclock shows:
Sun 01 Jul 2007 09:23:17 AM UTC -0.386231 seconds
I see UTC there so...I changed UTC to yes in hopes that will fix it. I doubt it though.
 
Old 07-01-2007, 09:42 AM   #12
WARnux
LQ Newbie
 
Registered: Jun 2007
Distribution: Debian with KDE
Posts: 17

Original Poster
Rep: Reputation: 0
Nope. Did nothing. I even rebooted just in case.
 
Old 07-01-2007, 10:53 AM   #13
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,153

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
KDE: 5:23
Date & Time Format...: 9:23
hwclock shows:
Sun 01 Jul 2007 09:23:17 AM UTC -0.386231 seconds
So, there's a 4 hour difference. In summertime ("Daylight savings") NYC is 4 hours behind UTC.
So your hardware clock is set to localtime.
Did you read that link I gave you in post #10?

From man hwclock
Code:
The following options apply to most functions.

       --utc

       --localtime
              Indicates that the Hardware Clock is kept in Coordinated Univer‐
              sal Time or local time, respectively.  It is your choice whether
              to keep your clock in UTC or local  time,  but  nothing  in  the
              clock tells which you’ve chosen.  So this option is how you give
              that information to hwclock.

              If you specify the wrong one of these options (or  specify  nei‐
              ther and take a wrong default), both setting and querying of the
              Hardware Clock will be messed up.

              If you specify neither --utc nor --localtime ,  the  default  is
              whichever  was  specified  the last time hwclock was used to set
              the clock (i.e. hwclock was successfully run with  the  --set  ,
              --systohc  ,  or  --adjust  options), as recorded in the adjtime
              file.  If the adjtime file doesn’t exist, the default  is  local
              time.
 
Old 07-01-2007, 11:09 AM   #14
WARnux
LQ Newbie
 
Registered: Jun 2007
Distribution: Debian with KDE
Posts: 17

Original Poster
Rep: Reputation: 0
Yes, but isn't my hardware clock right? It's just the taskbar time that's wrong.
 
Old 07-01-2007, 11:18 AM   #15
WARnux
LQ Newbie
 
Registered: Jun 2007
Distribution: Debian with KDE
Posts: 17

Original Poster
Rep: Reputation: 0
pc:/etc/X11# hwclock --localtime
Sun 01 Jul 2007 11:15:45 AM UTC -0.048504 seconds
pc:/etc/X11# hwclock --utc
Sun 01 Jul 2007 11:15:56 AM UTC -0.982689 seconds
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08:19 PM
Various clock issues: Clock shows wrong time only in Knoppmyth, & CMOS time change ? davidbix General 1 04-05-2006 10:58 PM
System clock always wrong Brain Drop Fedora 1 09-09-2004 01:18 AM
Clock on wrong time bripage Linux - General 4 08-08-2002 09:45 PM
system clock wrong!!! need help pockyboy Linux - General 3 07-03-2002 07:32 PM

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

All times are GMT -5. The time now is 11:35 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