LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-05-2009, 10:24 PM   #1
plebetan
Member
 
Registered: Jan 2009
Posts: 31

Rep: Reputation: 15
clock is wrong


I'm having a problem with my clock in linux. It gets the day/month/year correct, but the time is always early by four hours. So, it's 10pm and date will say it's 6pm. What confuses me is that if I look at my BIOS setup, it has the correct time. It seems like a time zone thing maybe. Anybody know how to fix this? I'm running debian lenny btw.

Last edited by plebetan; 07-05-2009 at 10:27 PM.
 
Old 07-05-2009, 10:34 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
So what does date say your time-zone is?
 
Old 07-05-2009, 10:37 PM   #3
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
There's likely a GUI way to do this, but:

See what the contents of the file /etc/timezone says.

If it says UTC then change it to localtime, or vice-versa.

As well, as Tinkster has asked, is your timezone set correctly to begin with?
 
Old 07-06-2009, 05:17 PM   #4
plebetan
Member
 
Registered: Jan 2009
Posts: 31

Original Poster
Rep: Reputation: 15
ok, i've looked into this a little and I think that I figured out what the problem is. I'm not supposed to be setting my system clock to my local timezone, it needs to be set to the current UTC time, which is 4 hours ahead then the OS determines my local time in reference to that. I seem to recall this happening to me when I installed windows too. After I chose EDT as my timezone, it booted and the time was wrong, but I just changed it in the gui and forgot abou it. I got the current UTC time from: http://www.worldtimeserver.com/current_time_in_UTC.aspx. Coincidentally, UTC time is always 4 hours ahead of Eastern time.
 
Old 07-06-2009, 05:48 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by plebetan View Post
Coincidentally, UTC time is always 4 hours ahead of Eastern time.
Unless EDT doesn't do any day light saving ever I doubt that...



Cheers,
Tink
 
  


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
Clock Wrong FLCL SUSE / openSUSE 4 01-18-2009 05:47 PM
System clock correct, hardware clock wrong karlovac Linux - General 5 01-16-2009 08:19 PM
WHAT is wrong with WHICH clock in my machine? feder Linux - General 1 10-30-2007 06:05 PM
wrong time on clock?? r00tNinj4 Debian 9 05-14-2006 11:01 AM
Various clock issues: Clock shows wrong time only in Knoppmyth, & CMOS time change ? davidbix General 1 04-05-2006 10:58 PM


All times are GMT -5. The time now is 10:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration