Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I hope this is the right forum...oh well here goes.
Problem: Linux displays a different time of day to Windows.
System setup: Mandrake 9.2/Gnome, Windows XP dual booted.
Example: If I boot into windows, the time is correctly displayed as 4pm. If I boot into Linux, the time is incorrectly displayed as 5am. If I adjust the time in Linux to the correct time, then Windows displays the wrong time when I switch back.
Is there any way to fix this? The time difference always seems to be 11 hours.
What are you doing to set the time? Try this. Start KDE. Right click on the clock in the right lower corner. Click on Configure Clock, then click on Time Zone. Click on your correct time zone. This should fix it.
The time zone is set correctly. The problem seems to be linux reading / writing the the time at bootup/shutdown incorrectly or in a different format. I know how to change the time, but it doesn't get set correctly at startup.
I'll have a go at using ntpd at startup to set the time instead of reading from the motherboard. Thanks.
Recently, I had quite an experience setting the time on a Slackware 4.0 box that does not have X installed. This required me to learn the CMI for changing the time.
You have two clocks in Linux a CMOS or Hardware Clock and a Clock that is provided by Linux. Your problem may stem from the two not being in sync. In Linux set the time either with the GUI or the Date command. Better yet use 'ntpdate' or 'netdate'. Search the web or your man pages on how to use them. Then use either the 'clock -w' or the 'hwclock' command (you will have one or the other) to set the CMOS clock from the Linux clock. This will sync the two clocks.
Also check 'ls -l /etc/localtime' to determine if the Timezone is set correctly in Linux.
It sounds to me as though Linux has been configured to assume that your hardware clock is in GMT, and then impose your selected timezone as an offset. Windows, on the other hand, is likely actually setting the hardware clock to the time in your current zone.
For dual boot systems, this latter configuration makes more sense. I believe that setting the clock with the "date" command and NOT using the --universal switch should achieve this, but I'm not able to try it out at the moment.
If you use ntpd, such an adjustment should be doable from within that package's configuration. I'm not terribly familiar with it, though.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.