LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-24-2011, 05:55 PM   #1
yanom
Member
 
Registered: Apr 2011
Distribution: Ubuntu
Posts: 51

Rep: Reputation: 2
Clock on wrong time (system clock is set to UTC)


So my BIOS clock is set to UTC and I keep setting the date with
Code:
date -s <time>
and it sets the time... but after a few reboots it resets itself! I tried setting my timezone with
Code:
dpkg-reconfigure tzdata
but it doesn't change the clock. Anyone know how I can get it on the right time? I am in US central time.

Note: It isn't a problem with the clock program, because both the date program and the panel clock show the same (incorrect) time.
 
Old 07-24-2011, 06:21 PM   #2
kmassare
LQ Newbie
 
Registered: Apr 2011
Location: California, US
Distribution: Fedora
Posts: 28

Rep: Reputation: 8
hwclock --systohc
 
Old 07-24-2011, 06:37 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,968

Rep: Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752
If you dual boot make sure the hardware clock is set for local time. Also verify/change the config setting so the OS knows the hardware clock is set for local or UTC @ /etc/default/rcS.
 
1 members found this post helpful.
Old 07-25-2011, 11:50 AM   #4
yanom
Member
 
Registered: Apr 2011
Distribution: Ubuntu
Posts: 51

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by michaelk View Post
If you dual boot make sure the hardware clock is set for local time.

so I have to update the hardware clock every time daylight savings* comes around?


*the idiot that invented daylight savings should be shot.
 
Old 07-25-2011, 12:34 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,968

Rep: Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752
No. Windows expects the hardware clock to be local time. linux will adjust as required but you do have to set the config file for the correct value (UTC or local). And the correct terminology is Daylight Saving Time

You did not say if you have a dual boot setup. I assume that your clock is off by 5 hours i.e. the difference between Central DST and UTC.

Last edited by michaelk; 07-25-2011 at 12:36 PM.
 
1 members found this post helpful.
Old 07-26-2011, 10:46 AM   #6
yanom
Member
 
Registered: Apr 2011
Distribution: Ubuntu
Posts: 51

Original Poster
Rep: Reputation: 2
I do dual-boot. So, I set it to local time, then adjust the config file where?
 
Old 07-26-2011, 11:26 AM   #7
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,017

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
michaelk told you where: /etc/default/rcS

If you set UTC=no in that file then the system clock is assumed to be set to local time. See man rcS. This probably needs a reboot to take effect.
 
1 members found this post helpful.
  


Reply

Tags
bios, clock, time, timezone


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 07:19 PM
Failed to set system clock to hardware clock jrtayloriv Linux - Newbie 2 09-25-2008 07:06 AM
Various clock issues: Clock shows wrong time only in Knoppmyth, & CMOS time change ? davidbix General 1 04-05-2006 09:58 PM
System Clock UTC Whatever.. berkay Linux - Newbie 3 09-24-2004 01:29 AM


All times are GMT -5. The time now is 04:30 AM.

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