Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 04-01-2006, 02:58 PM   #1
Registered: Mar 2006
Location: Saint Louis Park, MN
Distribution: Mandriva 2007.1 Spring
Posts: 338

Rep: Reputation: 30
Linux OS Clock/Timezone shows the clock off by 6 hours between OS's

I'm in central, which is -600. When I'm using a Linux OS, at noon, I see 12:00.
No Problem. When I switch to another OS, Linux based or Windows, I see 18:00 (6:00 pm).
I was told to enter the Linux timezone to "UTC".
When I switch from Linux to Linux/Windows, and back to Linux, it's all the same time.
Problem solved.
However, my email in Linux anyway, is now set to 6 hours past the actual time.

So, in a sense, I'm still dealing with this 6 hours difference.

How can this be solved?

Last edited by JBailey742; 04-01-2006 at 02:59 PM.
Old 04-01-2006, 04:06 PM   #2
Senior Member
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
*doze causes the problem by saving the local time on your machine (BIOS). You set up *doze to display the local time by setting your timezone in start->control panel->date/time.

on Linux you have a timezone correction - you also set your local timezone (not UTC) and maybe also tell it that your hardware clock is on local time (not UTC). These are the two confusing things.

If you don't run *bloze you can set your clock to GMT and use offsets like real operating systems use. If you do run it, it's going to keep changing your clocks back to local time, which will screw up Linux unless you set a local time zone in Linux.
Old 04-02-2006, 08:48 PM   #3
Registered: Mar 2006
Location: Saint Louis Park, MN
Distribution: Mandriva 2007.1 Spring
Posts: 338

Original Poster
Rep: Reputation: 30
so, what really is the solution? I have both set to local time (central), and one is 6 hours ahead.
If I set one to UTC, the email is off by 6 hours.
Unless I can play Descent and Call of Duty 2 on mandriva, I'm sort of dependant on windows XP
Old 04-03-2006, 03:01 AM   #4
LQ Newbie
Registered: Oct 2005
Location: Amsterdam, Netherlands
Posts: 16

Rep: Reputation: 2
The solution depends on the distribution

Most distributions have a way to configure whether the computer clock uses the local time or UTC.

Windows always uses the local time, so for machines that have both Windows and Linux, you should set this to local time.

For instance, on Gentoo there is a file called /etc/conf.d/clock, that contains some lines like this:
# Set CLOCK to "UTC" if your system clock is set to UTC (also known as
# Greenwich Mean Time).  If your clock is set to the local time, then
# set CLOCK to "local".  Note that if you dual boot with Windows, then
# you should set it to "local".

Google is your friend here. Try something like "YOUR_DISTRIBUTION local timezone".
Old 04-03-2006, 07:19 AM   #5
LQ Newbie
Registered: Mar 2006
Location: Brazil
Distribution: Kubuntu
Posts: 1

Rep: Reputation: 0

1 - from a terminal, as root, type:
date MMDDhhmmYYYY
Ex: if it's 13:42 in your city, type:
date 040313422006

then type:
2 - tzconfig
3 - 12
4 - Universal

I think this will fix it (well, I use Kubuntu).
Old 04-03-2006, 02:11 PM   #6
Registered: Nov 2005
Location: Switzerland
Distribution: Agnula/DeMuDi Gentoo SuSE
Posts: 58

Rep: Reputation: 15
You must use UCT. On gentoo, it is in the file /etc/adjtime, but it can differ with other linux flavor. On windows, I don't remember, but it is possible. Of course, both must use UTC.
Old 04-03-2006, 02:44 PM   #7
Senior Member
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46
Use Local Time to avoid the Windows confusion on a dual boot. I keep my BIOS set to local time, Linux configured to local time, then on the rare occasion that I need to reboot to Windows everything is kosher.
Old 04-03-2006, 05:44 PM   #8
Registered: Mar 2006
Location: Saint Louis Park, MN
Distribution: Mandriva 2007.1 Spring
Posts: 338

Original Poster
Rep: Reputation: 30
I'm using Mandriva 2006
Old 04-05-2006, 09:56 PM   #9
Registered: Mar 2006
Location: Saint Louis Park, MN
Distribution: Mandriva 2007.1 Spring
Posts: 338

Original Poster
Rep: Reputation: 30
I'll try to be as detailed as I can be.
First of all, I'm using MandrivaLinux 2006 and Windows XP Home Edition.

If I have both OS's as local time (Central), and have set Linux to the right time (let's say 12:00), Windows XP will say 18:00 (6:00 pm).
Resetting Windows time doesn't do any good, for it will be back at 18:00 when I reboot back to Windows.

If I set Linuxs OS to UCT, both Linux and Windows XP will display 12:00.
However, at least for Linux, the time the emails are being received and sent, are now 6 hours past the actual time.

One way or another, I'm facing some 6 hour difference (6 of course being -600)
Old 04-06-2006, 11:40 PM   #10
Senior Member
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Try the recommendation in the Mandriva Wiki on this page in the section entitled "Time Zones And Setting Time" to set your clock properly. Its a pretty decent explanation of how to do it with Mandriva and the tzselect and hwclock functions.

To get along with Windows, you'll need to set your clock to localtime, not UTC.


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
Various clock issues: Clock shows wrong time only in Knoppmyth, & CMOS time change ? davidbix General 1 04-05-2006 09:58 PM
Kde clock 4 hours slow? Mojojo Linux - Software 2 08-04-2005 08:37 PM
Clock Always Shows Wrong Timezone jonwatson Fedora 2 11-07-2004 01:46 PM
Gnome Clock 2.6.2 - Wrong timezone dotxp Linux - Software 1 10-06-2004 10:08 AM
clock changes hours by it self jct842 General 2 09-04-2002 10:26 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:25 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration