bluedragon

Help ! Windows Displaying Incorrect Time .. Windows Displays incorrect time while Ubuntu works perfectly

Recommended Posts

Hi, For some reason my Windows XP is displaying wrong time every time I boot into it. Ubuntu is working perfectly fine on the same machine. I thought my motherboard battery might be dying but BIOS time is correct. Can someone guide me as to what could be wrong? I have Windows XP x64 and Ubuntu. Could it be due to a Virus/ Trojan ?

Share this post


Link to post
Share on other sites

Could it be due to a Virus/ Trojan?

That's not it. A friend of mine had the same problem after installing a popular Linux distribution. The reason why your BIOS time matches the one you see in Ubuntu is because Ubuntu updates your hardware clock when it installs itself (and probably when there's an update for the package that manages the time). Whether or not you have recently updated your Ubuntu system could be the cause of your problem. I'm not entirely sure how my friend fixed the display on his Windows setup, but i would suspect having XP synchronize your time with the internet time would fix it—though i've never really had this problem.

Share this post


Link to post
Share on other sites

double click on the time/clock and then set the time manually...Simples :)

Share this post


Link to post
Share on other sites

@shadowx - I know how to update time manually@truefusion - Is it due to Linux ? I mean I have Ubuntu 9.10 now. And its still showing incorrect time. Its not always but at random after I restart. Though the time in BIOS is not affected. Can you pls ask your friend how he fixed it. I am not using GRUB to load Ubuntu and Windows. I installed windows first on one of my Drives and then disconnected it to install Ubuntu on the other drive. Can this be the reason ?Thanks for the replies

Share this post


Link to post
Share on other sites

I think there might be the problem of synchronization in Xp. Also I have posted here to subscribe to the thread for any future replies that may come on its way. I think I had a problem similar to this and was using dual boot of Windows XP and Mandrake 10. But I reinstalled both OS immediately.The CMOS battery needs to be checked for its functionality. Is there a software that detects the life or charge in the CMOS battery?

Share this post


Link to post
Share on other sites

I think there might be the problem of synchronization in Xp. Also I have posted here to subscribe to the thread for any future replies that may come on its way. I think I had a problem similar to this and was using dual boot of Windows XP and Mandrake 10. But I reinstalled both OS immediately.The CMOS battery needs to be checked for its functionality. Is there a software that detects the life or charge in the CMOS battery?


No, there is no program that can detect the strength of the CMOS battery
On a fairly new computer (no more then 5 years old) if your CMOS battery is getting low then your computer will warn you of this at boot. but sometimes it doesn't
the CMOS battery is responsible for memorizing information like disk sizes, computer ports, installed devices etc..
this information is needed for the computer to boot properly or completely and work well.

the CMOS batters powers the CMOS which contains the information needed to boot up the computer and run programs. and works with the RAM

if the CMOS battery dies or becomes very weak it can cause bigger problems which will cost money to fix

the only way to detect if your battery is weak is the following:
1) the computer keeps going off by itself (The CMOS is required to keep the computer on!)
2) Programs load slowly (remember! the CMOS works with the ram! without it your ram doesn't work right!)
3) you get an alert telling you to clean up disc space where there is alot of disc space (The CMOS contains data about disc space and size!)

How to replace the CMOS battery
just open up the cover on your computer and look at the mother board (the mother board is the very large circuit board) look for a small flat battery that looks like one of the larger hearing aid batteries. then just take something small like a hair pin and pop that battery out (don't worry you wont hurt anything) also be careful that you don't touch the motherboard itself especially with your skin because your bodies natural static can mess it up.

then look at the set of numbers and letters on the battery and go to walmart and buy a new one then just pop the new one in.

Cheers :) hope I helped!

Share this post


Link to post
Share on other sites

If you know how to change the time manually just make sure your timezone is set and try disabling the auto sync option, then set it manually and see if it goes again, it shouldnt.If the BIOS battery was dying on you then the time would reset to something like 01 Jan 2005 (depending when your motherboard/BIOS was made) It wouldnt reset to a random time, you might also loose config settings like Soviet Rathe said, so change a setting or two in BIOS (or make a note of the settings as they are now, and if you notice the clock is changed check the BIOS again and see if you have lost settings, if you have then the BIOS is at fault. But i've never heard of BIOS batteries dying to be honest, within the lifetime of an average computer it doesnt usually happen, ive been working on a machine with a Windows 98 sticker and a 900Mhz CPU so thats probably at least 9-10 years old but the BIOS is still going.

Share this post


Link to post
Share on other sites

My CMOS battery isn't dying :) for sure.I am using an ASUS motherboard and theres a lot of configuration stored within the BIOS. If my battery fails even once. It'll ask me to reconfigure it for sure. and Since it hasn't asked me to reconfigure , I figure my battery is alright. Now I noticed one more thing. When I boot into Ubuntu after restarting from Windows. Ubuntu displays incorrect time. And If I am not connected to internet. It keeps displaying incorrect time. Looks like both the OS have time issues. I'll probably stick a hand watch on my monitor :D that'll save me some time :(

Share this post


Link to post
Share on other sites

now guys what bluedragon is saying i have an experience of, i am still trying to figure out what it is, but i think it is a virus... I wouldnt say my machine dual boots, but i do have two separate OS on two SATA harddrives. My clock problem is on this wise... when i boot the computer (XP Pro) it is either behind time with about an hour or ahead with about an hour, two or three, i am always setting the clock right, even if i leave it on the whole day it just has to lose the time on its own, i dont know how... i have about 4 virtual machines on my XP, (Suse Server & desktop versions 10, Ubuntu Server 8 & desktop 6.04, as well as XP Pro), when the problem first started i thought the virtual machines were the culprits, but i noticed over time they are not (well,.. i think so)so i really think we should start considering the possibility of a nuisance virus... am still looking into it, so please lets do help each other on this one, if someone already has a solution please do advice...i am using Bitdefender Total Security 2009...

Share this post


Link to post
Share on other sites

I too have the same issue where ever I installed both ubuntu and windows dual boot for myself and my customers also. What is figured out is that it is clearly not a virus issue. The time difference from the correct time every time I switch from Ubuntu to Windows or vice versa is exactly my timezone lag( Mine is INDIA GMT+5.30). When I boot into ubuntu at 1'o clock and immediately boot to windows it shows 6.30. This is clearly an issue with how both the OS are dealing with BIOS time.

Still, I do not yet have a working solution or even a workaround for this, other than manually changing time everytime.

-reply by Siva

Share this post


Link to post
Share on other sites

Update : :) My clock is still displaying odd times Ubuntu automatically updates its clock from internet so I don't notice it but it also displays incorrect time if my internet is turned off Windows XP doesn't do this so it keeps displaying wrong time Its 23:14 right now and its displaying me 17:44 I think this has something to do with the way Ubuntu and Windows synchronize time. I think Ubuntu uses UTC time as its standard and windows uses GMT. I hope someone can come up with a solution

Share this post


Link to post
Share on other sites

I think Ubuntu uses UTC time as its standard and windows uses GMT.

GMT and UTC are both exactly the same (GMT+00:00). If UTC and BST were used then at most a one hour difference would be observed, but the minutes would remain accurate. The fact that there is a 5:30 difference would suggest a correct time zone of India/Sri Lanka.

 

According to most reports this is due to, once again, Microsoft getting something wrong. The hardware clock (the one on your motherboard) is supposed to be written in the UTC time zone, and read as that. The operating system then applies any changes to get it into your time zone. However, Windows gets this wrong and always writes the time in your local time zone.

 

To fix the issue you need to make Ubuntu also write the time incorrectly, as Microsoft don't have any way to fix their mistake in their OS. If you open /etc/default/rcS in a text editor, you should find a line like this:

 

# Set UTC=yes if your system clock is set to UTC (GMT), and UTC=no if not.UTC=yes

Change it to say:

 

# Set UTC=yes if your system clock is set to UTC (GMT), and UTC=no if not.UTC=no

Share this post


Link to post
Share on other sites

Hi!@bluedragonThe problem you are experiencing is neither due to a virus nor due to a problem with Microsoft Windows XP or Ubuntu Linux. The problem is because Linux provides you with an option to treat your computer's clock (powered by your CMOS battery) as either the Greenwich Meridian Time (GMT) / Universal Coordinated Time (UTC) or your current local timezone. The benefit of this approach is that when you take your computer to a different location, you can simply change the timezone to have your computer display the current time in that location, much like the Apple iPhone does.Microsoft Windows XP, however, does not have this feature and always attempts to set your computer's clock to the current time in your geographical region. It scan ynchronize the computer's clock with a time server located on the Internet periodically.If you have a dual boot system, you can select the option to have Linux (Ubuntu, Fedora, or any other distribution that you use ought to provide you with an option to do this) treat the computer clock as the time in the current location's time zone.You might be able to fix the problem using the method suggested by rvalkass, but I have always been using the graphical interface for making the setting. Linux also prompts for the setting during installation so I have never had to change it for any of my recent installations of Linux.@iGuest (Siva)When you reboot into Microsoft Windows after having Linux set the time on your computer, you might want to give it some time to synchronize the clock with an Internet time server. Alternatively, you can use a script to automatically synchronize the clock when the computer boots up.If you can, change the time setting on Linux to the current timezone rather than Universal Coordinated Time / Greenwich Meridian Time, as that's the right way to solve the problem permanently.

Share this post


Link to post
Share on other sites

Thanks Everyone@rvalkass Thank you :) .. I'll try the method u suggested an update -- The time screw up also screws my Pocket PC ... :D I synced my Pocket PC with my computer when it was displaying the wrong time and guess what .. It changed the time on my PPC also .. and the funny part was , when I checked the time in the middle of the night and it was still showing me evening :(

Share this post


Link to post
Share on other sites

Hi,
For some reason my Windows XP is displaying wrong time every time I boot into it. Ubuntu is working perfectly fine on the same machine. I thought my motherboard battery might be dying but BIOS time is correct. Can someone guide me as to what could be wrong? I have Windows XP x64 and Ubuntu.

Could it be due to a Virus/ Trojan ?


there might be a problem with your bios,s cmos battery but i want to say you that check at first the time after two consecutive power shut down by just shutting down xp two times.because last week i had installed dual boot with xp n ubuntu,,i got every time i shut down xp n start ubuntu.i have a dell laptop n using xp sp2 32 bit.perhaps due to different architecture ,the result is coming like this.
if the time gets changed automatically,,also uncheck auto synchronization of time in time box by clicking in taskbar.
if the problem persist,,try to change the cmos battery.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now