Unix Technical Forum

Really strange time thing

This is a discussion on Really strange time thing within the Gentoo Linux Support forums, part of the Unix Operating Systems category; --> Hello, my date is set to timezone /Europe/Brussels, so when I choose 'adjust date & time' current timezone says ...


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 10:40 AM
Kristof
 
Posts: n/a
Default Really strange time thing

Hello,

my date is set to timezone /Europe/Brussels, so when I choose 'adjust
date & time' current timezone says CEST. This all seems to be normal,
but every time I reboot, my pc-clock is being turned back for about
30-40 minutes.
For instance, my mobile says it's 11h23 right now, but my Gentoo says
10h45. When I correct that and reboot, same thing happens. Can anyone
explain this, or even better: solve it

Regards,

Kristof.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 10:40 AM
Ben O'Brien
 
Posts: n/a
Default Re: Really strange time thing

Kristof wrote:
> Hello,
>
> my date is set to timezone /Europe/Brussels, so when I choose 'adjust
> date & time' current timezone says CEST. This all seems to be normal,
> but every time I reboot, my pc-clock is being turned back for about
> 30-40 minutes.
> For instance, my mobile says it's 11h23 right now, but my Gentoo says
> 10h45. When I correct that and reboot, same thing happens. Can anyone
> explain this, or even better: solve it
>
> Regards,
>
> Kristof.

Yeah, setting time in Linux seems to be a pain. Especially when you dual
boot with a retarded Windows install.
Anyway, as far as I can tell, you probably need to set your hwclock. Try
doing it with hwclock -w -u once you have date set correctly.
I use:
root $ /etc/init.d/ntp-client start
root $ hwclock -w -u

and everything seems to be ok, at least until the next time I boot windows.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 10:40 AM
Sybren Stuvel
 
Posts: n/a
Default Re: Really strange time thing

Kristof enlightened us with:
> my date is set to timezone /Europe/Brussels, so when I choose
> 'adjust date & time' current timezone says CEST. This all seems to
> be normal, but every time I reboot, my pc-clock is being turned back
> for about 30-40 minutes.


That's due to a faulty setting in /etc/adjtime. Use NTP to set your
clock correctly, and then remove that file.

Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 10:41 AM
Ben Measures
 
Posts: n/a
Default Re: Really strange time thing

Ben O'Brien wrote:
> Kristof wrote:
>
>>my date is set to timezone /Europe/Brussels, so when I choose 'adjust
>>date & time' current timezone says CEST. This all seems to be normal,
>>but every time I reboot, my pc-clock is being turned back for about
>>30-40 minutes.

>
> Yeah, setting time in Linux seems to be a pain. Especially when you dual
> boot with a retarded Windows install.
> [snip]
> and everything seems to be ok, at least until the next time I boot windows.


In /etc/rc.conf :
> # Set CLOCK to "UTC" if your system clock is set to UTC (also known as
> # Greenwich Mean Time). If your clock is set to the local time, then set CLOCK
> # to "local". This setting is used by the /etc/init.d/clock script.
>
> CLOCK="local"


Windows keeps the hardware clock at local time. If you dual-boot,
setting CLOCK="local" may help.

--
Ben M.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:50 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com