Fix date and time in Ubuntu
Dual-booting with Ubuntu and Windows sometimes giving a problem with date and time in Ubuntu. This is a well-established problem when dual-booting, since Linux assumes the hardware clock represents UTC, whereas Windows assumes the hardware clock represents local time. Luckily Linux provides ways to change this to fix it.
If you go into your clock settings, I think you can select between setting the hardware as either UTC or local time. Try switching that, and then adjust the time and see if it “sticks.”
If not, you can do this via the commandline in Linux :-
- In Linux, set the date and time to what it currently is. For example if it’s 10:20am local time:
user@server:~$ sudo date -s 10:20
- Then update the hardware clock accordingly, and force this to be considered “localtime”:
user@server:~$ sudo /sbin/hwclock --systohc --localtime
- Check to make sure it looks right:
user@server:~$ sudo /sbin/hwclock --localtime
- Sync between hardware clock and system clock:
user@server:~$ sudo /sbin/hwclock --hctosys --localtime
Now Linux should consider the clock to be “localtime”, which should be identical to what Windows is doing. So after rebooting into Windows, the time should look right.
Hope that helps.
Categories: Linux / Unix, Tutorial
Linux, Tips & Tricks, Tutorial, Ubuntu
Got similar problem, thanks, I will try it later. Save your post for now since I’m at my office currently. Thanks again.
I hope it will fix your problem…
1. Changed BIOS to boot Ubuntu 8.04
2. Fresh boot showed correct time.
3. Followed your instructions.
3a. sudo /sbin/hwclock –show displayed correct time
4. Did restart and accessed BIOS the clock was plus 4 hours.
5. Reset time with reboot.
6. Reboot showed correct time.
7.Using sudo /sbin/hwclock –show displayed time minus 4 hours.
Tried many variations with no success.
hth
oldcity
Re above booted from using Vista.
oldcity: have you try update your time with ntp server.
will advise in on Monday.
This worked for me – thanks.
Greate!
Thx!
Didnt notice the importance of this stuff until MySQL and PHP surprised me with displaying different time
SELECT CURRENT_TIMESTAMP
// 2009-06-22 8:00:00
eeepp…,
showing some love,
hey thanks for the add I love all your stuff,
hey thanks for the add I love all your stuff,
i love your work!,
tzselect is not good
use
dpkg-reconfigure tzdata
the best fix I’ve found so far is to set in
the line UTC=yes to
UTC=no and reboot into Windows. Make sure the clock is right there, then boot back into Ubuntu.
to fix this issue
go into control center and look for time and date, that is the problem, add your time zone ! and reboot it will be fixed. the clock on the task-bar is useless because the core zones have not be modified in the control center
G60bnG http://gdjI3b7VaWpU1m0dGpvjRrcu9Fk.com
I work with computers baby loony toons 939
Where do you live? ordinary teen porn sml
Could I borrow your phone, please? pedo
=-D
A law firm Imgboards Models
iswor
When do you want me to start? Perteen Model Pics
:-OOO
I’ll call back later Sarka Model Teen
pnqam
Are you a student? Supermodels Big Tits
934673
Thanks a lot!
Where are you from? http://ypoobecilua.blog.free.fr/ commanders models yo i need a bitch like dat she freaky as hell…at first i thougt he might be rapin her but damn its da otha way around(she fuckin da shit out of him)
We’d like to invite you for an interview http://lycoleukae.de.tl preteen boy nipple she’s ugly. that’s who she is. disgusting cunt. goddamn she’s fucking gross. the brunette is ok i guess.
Thank you this really does help.
Thanks for this. I just started working with Ubuntu and this will help me with the issue I’m having with the time.
Cheers.