![]() ![]() What you are doing is to tell your Linux system to use the local time for the hardware clock (RTC). Ubuntu and most other Linux distributions use systemd these days and hence you can use timedatectl command to change the settings. It is easier to make the changes in Linux and hence I’ll recommend going with the second method. Method 2: Make Ubuntu use local time for hardware clock You should do a similar settings change for Windows as well. To make your Ubuntu Linux system check for date and time automatically, go to System Settings -> Date & Time and enable both options. What happens in this case is that though your operating system (be it Windows or Linux) will show the incorrect time for a minute, and then it automatically sets the correct time if you are connected to the internet. Method 1: Make your OS set time and date automatically I’ll discuss two of them which are easier. Make Windows use UTC time for the hardware clock.Make Linux use local time for the hardware clock.Make both Ubuntu and Windows check for date, time and timezone automatically via internet.There are three ways you can go about handling this issue: Fixing Windows Showing Wrong Time in a Dual Boot Setup With Linux Now that you understand the root cause of the time difference issues in dual boot, it’s time to see how to fix the issue. Now Linux shows a time of 20:30 which is 5:30 hours ahead of the actual time. If you boot into Linux, it reads the time from the hardware clock which is in local time (15:00) but since Linux believes it to be the UTC time, it adds an offset of 5:30 to the system clock. And hence, Windows shows 09:30 as the time which is 5:30 hours behind the actual time (15:00 in this example).Īgain, if I set the correct time in Windows by toggling the automatic time zone and time buttons, you know what is going to happen? Now it will show the correct time on the system (15:00) and sync this information (notice the “Synchronize your clock” option in the image) to the hardware clock. ![]() And thus it changes the system clock (which should have shown 15:00) to use the UTC time (09:30) as the local time. But Windows thinks the hardware clock has stored the local time. Now when I turn off the system and boot into Windows, the hardware clock has the UTC time (09:30 in this example). Let’ say the current time in Kolkata timezone is 15:00 which means that the UTC time is 09:30. After installing, when I set the timezone in Ubuntu to the Kolkata time zone, Ubuntu syncs this time information to the hardware clock but with an offset of 5:30 because hardware clock (RTC) has to be in UTC for Linux. You see I am in Kolkata time zone which is UTC+5:30. On the other hand, Windows thinks that the time stored on the hardware clock is local time. If your operating system makes any changes to system clock, like changing time zone etc, it tries to sync this information to the hardware clock.īy default, Linux assumes that the time stored in the hardware clock is in UTC, not the local time. Afterwards, the system clock is used for tracking time. When your computer is powered on, the hardware clock is read and used to set the system clock. The system clock is what you see inside your operating system. ![]() It keeps on running even after your system is powered off. This clock is outside the operating system, on your computer’s motherboard. Why Windows and Linux show different time in dual boot?Ī computer has two main clocks: a system clock and a hardware clock.Ī hardware clock which is also called RTC ( real time clock) or CMOS/BIOS clock. But before that, let me tell you why you encounter a time difference in a dual boot setup. ![]() I’ll explain in detail how the above command fixes the wrong time issue in Windows after dual boot. You can fix it by using the following command in the Linux terminal: timedatectl set-local-rtc 1Īgain, don’t worry. That’s strange specially because you are connected to the internet and your date and time is set to be used automatically.ĭon’t worry! You are not the only one to face this issue. Sometimes, it is the opposite and Linux shows the wrong time and Windows has the correct time. But when you boot into Windows, it shows the wrong time. When you use Linux, it shows the correct time. If you dual boot Windows and Ubuntu or any other Linux distribution, you might have noticed a time difference between the two operating systems. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |