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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
06-29-2007, 04:38 PM
|
#1
|
LQ Newbie
Registered: Jun 2007
Distribution: Debian with KDE
Posts: 17
Rep:
|
(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.
|
|
|
06-29-2007, 05:56 PM
|
#2
|
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687
Rep:
|
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.
|
|
|
06-29-2007, 07:08 PM
|
#3
|
LQ Newbie
Registered: Jun 2007
Distribution: Debian with KDE
Posts: 17
Original Poster
Rep:
|
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.
|
|
|
06-29-2007, 11:46 PM
|
#4
|
Member
Registered: Mar 2007
Location: New Jersey, USA
Distribution: Archlinux
Posts: 165
Rep:
|
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)
|
|
|
06-30-2007, 08:19 AM
|
#5
|
LQ Newbie
Registered: Jun 2007
Distribution: Debian with KDE
Posts: 17
Original Poster
Rep:
|
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?
|
|
|
06-30-2007, 11:51 AM
|
#6
|
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,153
|
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"
|
|
|
06-30-2007, 12:49 PM
|
#7
|
LQ Newbie
Registered: Jun 2007
Distribution: Debian with KDE
Posts: 17
Original Poster
Rep:
|
It's already set to local time zone
|
|
|
06-30-2007, 01:29 PM
|
#8
|
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,153
|
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?
|
|
|
06-30-2007, 02:36 PM
|
#9
|
LQ Newbie
Registered: Jun 2007
Distribution: Debian with KDE
Posts: 17
Original Poster
Rep:
|
cat /etc/timezone
America/New_York
cat /etc/default/rcS | grep UTC
UTC=no
|
|
|
07-01-2007, 07:20 AM
|
#10
|
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,153
|
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
|
|
|
07-01-2007, 09:28 AM
|
#11
|
LQ Newbie
Registered: Jun 2007
Distribution: Debian with KDE
Posts: 17
Original Poster
Rep:
|
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.
|
|
|
07-01-2007, 09:42 AM
|
#12
|
LQ Newbie
Registered: Jun 2007
Distribution: Debian with KDE
Posts: 17
Original Poster
Rep:
|
Nope. Did nothing. I even rebooted just in case.
|
|
|
07-01-2007, 10:53 AM
|
#13
|
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,153
|
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.
|
|
|
07-01-2007, 11:09 AM
|
#14
|
LQ Newbie
Registered: Jun 2007
Distribution: Debian with KDE
Posts: 17
Original Poster
Rep:
|
Yes, but isn't my hardware clock right? It's just the taskbar time that's wrong.
|
|
|
07-01-2007, 11:18 AM
|
#15
|
LQ Newbie
Registered: Jun 2007
Distribution: Debian with KDE
Posts: 17
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 11:35 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|