• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

BIOS Time (not date) Changes On Its Own

I have an Asus M4A78LT-M with the most recent bios version (0802). I run a dual boot system with Windows and Ubuntu 11.04 (I'm paranoid to upgrade to 11.10 when everything runs fine) and Windows XP. I can boot into Ubuntu, and it updates the time just fine automatically. When I boot into Windows XP, the time is incorrect (although the date is correct or just a day-ahead). Even though I believe my XP settings are correct, I have to go and manually synch the time from the Internet (and it will give me the correct time).

I always thought this was some type of WIndows problem, a couple days ago I had updated the BIOS with the correct time, but somehow it had gotten reset again in the BIOS (without me changing anything). The date stays the same.

I am using grub to dual boot on two separate hard drives.

Anyone know what's causing this?
 
If i understand your bios reset every time you restart like (CMOS) if this is the case the battery is going bad.
 
I am in Pacific (UTC-8). My BIOS will go back to UTC time (that is, it will add 8 hours). This motherboard is less than a year old; I find it hard to believe it is a battery issue (at most this is a 2 year old board).

I guess I'll have to check it next time I open it up.
 
I am in Pacific (UTC-8). My BIOS will go back to UTC time (that is, it will add 8 hours). This motherboard is less than a year old; I find it hard to believe it is a battery issue (at most this is a 2 year old board).

I guess I'll have to check it next time I open it up.

I seem to recall having that problem too, dual-booting Linux. It likes to set the BIOS time to UTC, and then derive localtime using a TZ offset.

Whereas, with Windows, it prefer that the BIOS time be localtime.
 
I seem to recall having that problem too, dual-booting Linux. It likes to set the BIOS time to UTC, and then derive localtime using a TZ offset.

Whereas, with Windows, it prefer that the BIOS time be localtime.

Ive seen this before. Boot into Windows and make sure it is set correctly. Then shutdown. Then boot in Ubuntu, shutdown and boot back into Windows. Did the time change happen? I'll bet it did. Ubuntu is screwing you as you do not have the Time Zone set properly. You need to set the time zone in Ubuntu and Windows to be the same and you will be good.
 
VirtualLarry, pcgeek,
Thank you for the responses, I did not think it was the CMOS battery! Concurrently with the 2 hours that have lapsed since my response here I did some more troubleshooting of the issue.

I did so using my dual boot setup (grub on a Linux partition on HardDriveA, Windows XP booting on HardDriveB) plus a LiveUSB Ubuntu 11.04.

I'll be using the term "localtime" to denote my Pacific timezone.

1) Booting into Windows and restarting into BIOS, time did not change in OS (both were localtime) and BIOS.
2) Booting into the LiveUSB Ubuntu 11.04 would result in the OS changing the time to be UTC; however, on restart the BIOS would still be in my localtime).
3) Booting into HardDriveA Ubuntu 11.04 would result in OS showing localtime; however, on restart the BIOS would be set to UTC!

It is a bit disconcerting to me that Ubuntu would access and change the BIOS without warning... it appears that this is not done during start-up, but during shut-down.

I used Google and first came upon this thread (via ubuntuforums.org). Quoting the response:
Hello.
On a normal install I have to edit "/etc/default/rcS" and change the utc line to " UTC=no".
Save and next time you boot it will use local time. If your install is persistent this should work. I hope this helps.
A.
I think came upon further information at this thread (via help.ubuntu.com). The introduction (click through if you are interested in how to "fix" Windows rather than Ubuntu):
"Multiple Boot Systems Time Conflicts":
Operating systems store and retrieve the time in the hardware clock located on your motherboard so that it can keep track of the time even when the system does not have power. Most operating systems (Linux/Unix/Mac) store the time on the hardware clock as UTC by default, though some systems (notably Microsoft Windows) store the time on the hardware clock as the 'local' time. This causes problems in a dual boot system if both systems view the hardware clock differently.

I made the change to the HardDriveA Ubuntu 11.04 install and it worked. It's no longer changing the hardware BIOS setting. It appears this is done on shutdown, rather than start-up (wonder what happens if the BIOS password is set, unlike my insecure system?). Strangely enough I couldn't change my LiveUSB (maybe its not persistent), so I guess that OS will need to be adjusted whenever I use it. But it was not writing anything to the BIOS upon shutdown.

I hope someone using Google or another search engine trying to wonder what's going on finds this thread useful. Google took me on a strange route to get to the first link; and then having found it I was able to search for "/etc/default/rcS" to get to the other link.
 
Make sure in your time/date settings. The internet synchronization is turned off. Also make sure that the correct time zone is selected. But more importantly , make sure the synchronization with the internet is off. Hope that works.
 
In the long run you are better off using UTC and then setting the timezones in the OS's. Contrary to what I have seen mentioned here, I have never seen Windows reset the BIOS to local, nor Linux. Granted I have not see "every case" but everything I run is UTC under the hood and uses timezone off sets. Turning off Internet Time sync is just silly also. "The Internet" runs in UTC. Set the TZ values properly and you won't have any problems. Setting the clock to something not UTC however can cause various webpages that use time for encryption to fail. Windows Update being one example.
 
Contrary to what I have seen mentioned here, I have never seen Windows reset the BIOS to local, nor Linux.

I've never seen a BIOS with a timezone setting, so I don't see how that would be possible.

Anyway, OP seems to have resolved it. It's been a long since I've dual booted with a Linux distro, but I don't remember running into this back in the day with slackware or redhat, or whatever I was dual booting back then. First time I've heard of this happening too, so I'd take a guess it's not standard/expected behavior to update the BIOS with the UTC time without adjusting for the local TZ, especially since the BIOS doesn't have a TZ setting.
 
I've never seen a BIOS with a timezone setting, so I don't see how that would be possible.

Anyway, OP seems to have resolved it. It's been a long since I've dual booted with a Linux distro, but I don't remember running into this back in the day with slackware or redhat, or whatever I was dual booting back then. First time I've heard of this happening too, so I'd take a guess it's not standard/expected behavior to update the BIOS with the UTC time without adjusting for the local TZ, especially since the BIOS doesn't have a TZ setting.

I have BIOS time set to UTC so it is very possible I have never seen the issue. In most cases if you have NTP set up on the OS's the BIOS could be set to 2047 and the OS's would just use the network time.

I seem to recall that for the most part, most OS's use the BIOS only to set the clock on boot and start running internal clocks... I could be wrong here.
 
I have BIOS time set to UTC so it is very possible I have never seen the issue.

What system/motherboard/BIOS are you running that allows you to select a timezone? I've honestly never seen that.

In most cases if you have NTP set up on the OS's the BIOS could be set to 2047 and the OS's would just use the network time.
Do you somehow have the OS set to not update the BIOS time? I've never seen that as well.
 
Last edited:
Back
Top