LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-21-2007, 09:10 AM   #1
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Question Trying to set system's clock to local time; where is tzconfig gone?


Hi people, I reinstalled Debian last week, and as usual, during the installation I set my time to America/Caracas (it was a networkless install with the first debian etch dvd, since I'm on a wireless network). Then, when I booted debian, my time was 4 hours earlier (Caracas is -4 hours from GMT), so I ran tzconfig attempting to set the time to the hardware clock, but, by mistake, I selected UTC instead of UCT. Now, everytime I reboot, the system's time is 4 hours earlier (it is ok in windows and ubuntu). So, I tried running tzconfig to set the time properly, but I get 'command not found' when trying to run it, so where is it gone? (guess I lost it with a dist-upgrade to lenny/sid, but how to set my time to the hardware clock now?).

Oh, and something that might be related, when I invoke 'hwclock --show', I get the following message (translated from spanish): 'The execution of select() to /dev/rtc to wait for a clock signal timed out' (I see a similar message when turning debian off).

So, what am I missing here? (it's getting very annoying seting up the time every time a boot into debian).

Ragards, and thanks in advance.
 
Old 08-21-2007, 09:55 AM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Edit the file /etc/default/rcS as root and change the UTC=yes to UTC=no.
 
Old 08-21-2007, 10:44 AM   #3
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Original Poster
Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Hi HappyTux, well, there's something weird here: when I was gonna edit /etc/default/rcS, the time was already set to 'UTC=no', so I guess I might have changed it some time in some other way and don't remember now. I changed it to 'UCT=yes' and rebooted to test if the system's time was set to the hardware clock, but I'm still 4 hours earlier when I reboot. Any clues?

Thanks in advance.
 
Old 08-21-2007, 10:55 AM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Hmm that is usually the problem check to make sure the /etc/timezone actually got set to America/Caracas.
 
Old 08-21-2007, 11:06 AM   #5
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Original Poster
Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Sorry, I forgot to say this in my previous post, my /etc/timezone file is set to America/Caracas:

Code:
cat /etc/timezone
America/Caracas
I'm really confused here. I even try going to 'System>Administration>Date and time' (in Gnome), setting the timezone to America/Caracas and still it's always 4 hours earlier when I reboot (no matter if I choose to synchronize to a NTP server or not).
 
Old 11-18-2007, 09:45 PM   #6
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Original Poster
Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Arrow

Hi, sorry for double post; this is just to let you -and other people facing this issue- know that I finally solved it with:

Code:
dpkg-reconfigure tzdata
On the menu, scroll down to the last option (Etc) and then select UCT; this should sync your system clock with the hardware clock.
 
  


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
Code for changing system's local date & time g4j31a5 Programming 8 03-21-2007 05:02 AM
Should I set system clock to GMT or local time? square_eyes Linux - General 4 01-22-2007 03:59 PM
Where does RH8 daily set system time to hardware clock time smartnorman Red Hat 1 05-24-2006 02:42 PM
Various clock issues: Clock shows wrong time only in Knoppmyth, & CMOS time change ? davidbix General 1 04-05-2006 09:58 PM
RTC time on a locally set clock pe2338 Debian 8 09-06-2003 04:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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

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