LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-09-2005, 11:58 PM   #1
m_lp_ql_m
Member
 
Registered: Dec 2003
Location: So Cal
Distribution: Debian Etch
Posts: 59

Rep: Reputation: 15
Can't seem to reset KDE taskbar clock


I'm using Debian Sarge, kernel 2.6.8-1-686, KDE 3.3.
The clock and calendar on my taskbar is showing 8 hours ahead- UTC I'm assuming. I right click on the clock, choose "Adjust Date & Time", then select my area from the drop down list to change the time zone. When I click "Apply", the time in the Configure Date & Time panel changes correctly, but then, after clicking "OK", my taskbar clock doesn't change, and when I go back to "Adjust Date & Time", I find that it's back on UTC still. Any ideas?
 
Old 01-10-2005, 12:11 AM   #2
efi360
Member
 
Registered: Feb 2004
Location: San Antonio, TX.
Distribution: Debian
Posts: 71

Rep: Reputation: 15
Cool Having a bad Time

If I am not mistaken I think the clock wont change until you restart X. After you hit apply then OK just log out then back in again.
Should works. Me thinks
 
Old 01-10-2005, 11:21 PM   #3
m_lp_ql_m
Member
 
Registered: Dec 2003
Location: So Cal
Distribution: Debian Etch
Posts: 59

Original Poster
Rep: Reputation: 15
No, sorry, that doesn't seem to be it, but thanks anyway. Anyone else any other ideas? Not a major problem, I guess, but it is annoying having to convert all the time, all the, er.. time. Mebbe I should just move to London.
 
Old 01-10-2005, 11:38 PM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
Quote:
If I am not mistaken I think the clock wont change until you restart X.
I think you're right and in fact, I had to reboot to get the changes to show.
 
Old 01-11-2005, 05:05 PM   #5
m_lp_ql_m
Member
 
Registered: Dec 2003
Location: So Cal
Distribution: Debian Etch
Posts: 59

Original Poster
Rep: Reputation: 15
Dang, I've rebooted my whole box several times with no luck. What am I missing?
 
Old 01-11-2005, 05:41 PM   #6
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
Here's a little script I use for the time zone part. After you get that set, then try running this command below it to set the date and time.

Code:
#!/bin/bash

## If you know which zone you want to view, you can use the command:zdump <US/Area>
## zdump US/Eastern , zdump US/Central , zdump US/Mountain , zdump US/Pacific
## or you could run this script

# Created by Ben Okopnik on Wed Nov 21 23:06:09 EST 2001
# Links '/etc/localtime' to appropriate TZ

[ $UID -gt 0 ] && { printf "You need to be root.\n"; exit; }

cd /usr/share/zoneinfo/US

PS3="Please select a timezone: "
select tz in *
do
	[ "$tz" = "" ] && {
		printf "Invalid choice; timezone not set.\n"
		exit
	}

	ln -sf $PWD/$tz /etc/localtime
	printf "The timezone is now US/$tz.\n"
	date
	exit
done
Of course, it would be handy to have a clock around so you get the time correct.
date -s "01/11/2005 18:41:00"
 
Old 01-11-2005, 11:04 PM   #7
nailBnny
LQ Newbie
 
Registered: Nov 2004
Distribution: Slackware 10
Posts: 1

Rep: Reputation: 0
I had the same sort of problem untill I realized that Slack was configured to use my hardware clock as GMT. Whenever I booted, the clock was off by 5 hours. So I just reset my hardware clock to GMT and now Slack has the correct time for this timezone.
*boinks himself in the head*
 
Old 01-15-2005, 10:50 AM   #8
efi360
Member
 
Registered: Feb 2004
Location: San Antonio, TX.
Distribution: Debian
Posts: 71

Rep: Reputation: 15
All about Time

Sorry for late reply been away from my PC, don't know if you worked it out but I just
thought you might try logging in under root desktop and trying it again sometimes I notice that things don't change on my system while logged in as user and when I log in as root the changes seem to hold, then log back as user. Just a Idea !!!
 
Old 02-11-2005, 11:12 PM   #9
m_lp_ql_m
Member
 
Registered: Dec 2003
Location: So Cal
Distribution: Debian Etch
Posts: 59

Original Poster
Rep: Reputation: 15
Sorry to follow up on this so late- homey's little script worked. I guess I was confused. It seems the correct procedure is to set the system time zone first, then set the system time. Am I correct now in assuming that the "system time" in the OS is different from the "system time" in KDE?
In the interest of education, if I didn't have homey's script, how would I have done this from the bash prompt?
 
Old 02-11-2005, 11:26 PM   #10
m_lp_ql_m
Member
 
Registered: Dec 2003
Location: So Cal
Distribution: Debian Etch
Posts: 59

Original Poster
Rep: Reputation: 15
Let me clarify my last question: How are the BIOS time, system time, and Linux time related?
 
Old 02-12-2005, 08:01 AM   #11
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
Quote:
Let me clarify my last question: How are the BIOS time, system time, and Linux time related?
There is only hardware time and system time ( me thinks )

If you want to set the time zone from the command, for example, us / eastern ......
zdump US/Eastern

Then, I check /etc/sysconfig/clock To make sure it looks like this. ( On FC3, may be different for other os ) .
ZONE="America/New_York"
UTC=false
ARC=false


Then, I link the timezone to /etc/localtime ( the script does this also )
ln -sf /usr/share/zoneinfo/US/Eastern /etc/localtime

Then, I set the date and time using the correct info.......
date -s "02/12/2005 9:01:00"

Then, I tell the sytem to sync with the hardware clock. FC3 does this on shut down anyway...
/sbin/hwclock --systohc
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE taskbar applet drag bars disappeared, can't use taskbar now jon_k Linux - Software 1 05-08-2005 04:24 AM
adding clock/time to taskbar? petkov Mandriva 3 06-28-2004 10:58 PM
Debian in PA-RISC - System Clock is reset to Jan 1970 at bootup wgpaine Linux - General 2 02-07-2004 10:38 AM
KDE taskbar.. JIV Linux - Software 4 11-11-2003 10:43 AM
KDE Taskbar JakeFarley Linux - Newbie 4 10-27-2002 03:58 PM


All times are GMT -5. The time now is 07:32 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration