If you are using Ubuntu Linux in dual boot with Windows, or you have installed Ubuntu inside Windows using Wubi installer like I have done both on my desktop and laptop PC, then you might be facing one typical problem which most of us face. The problem is whenever you boot your computer in Ubuntu, the time which shows up on screen is wrong.
If you change this time to your local time, then after booting in Windows, you will see that the time shown in Windows is not correct, so you end up modifying the date and time whenever you boot in the other OS.
I just figured out that its not a problem with Ubuntu or Windows, its just that the time shown in the Ubuntu is UTC time and not your local time. To fix this issue, I will share few very simple steps, read on.
When you click on time display on your Ubuntu, you see a location at the bottom, just click the Edit button in front of Locations
When you click Edit, you see a Clock Preference Window, on this window. click on the Locations tab and Click Add button here to add your local location.
Just type first few letters of your City or State and you will see that it shows you suggestion to add that location. Add your correct location and it will pick up the time-zone, latitude and longitude details automatically from Internet.
Step 4 :
After you add this location, you will see that this location will show up just below the small calendar screen. Just hover your mouse over it and it will show you a small button labeled as “Set” , this will set this added location as your home location. You can add more locations and set your location to your current location if you travel frequently across the time-zones. This is it.
As you can see on the screen below, the time and date are not displayed correctly as per the local time of your location and not as per the UTC.
We hope you find this tutorial easy to follow, if you know an easier way to do this, please share via comments below. I found out this method on random hit and trial with the settings.