Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Time changed Gentoo Didn't <SOLVED!>
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
grofaz
Guru
Guru


Joined: 18 Sep 2005
Posts: 319

PostPosted: Mon Mar 12, 2007 7:27 pm    Post subject: Reply with quote

knifeyspoony wrote:
What you say is true, though I'm unsure if you realize that my purpose in rebooting was to test if the correct time would persist.

Perhaps grofaz will oblige in tagging the topic solved.


I will when it is indeed solved. I'm not happy yet! I don't like the fact my monitor now goes into standby when I get to my login screen. That sucks. I don't understand why changing to DST screws everything up when the timezone-data-2007c was supposed to prevent that from happening. I really don't have the time to sit around googling and trying to fix things that shouldn't break in the first place. That bugs me, man!! This kind of thing should be handled by a simple update.

grofaz...out
Back to top
View user's profile Send private message
jonnevers
Veteran
Veteran


Joined: 02 Jan 2003
Posts: 1594
Location: Gentoo64 land

PostPosted: Mon Mar 12, 2007 7:32 pm    Post subject: Reply with quote

grofaz wrote:
knifeyspoony wrote:
What you say is true, though I'm unsure if you realize that my purpose in rebooting was to test if the correct time would persist.

Perhaps grofaz will oblige in tagging the topic solved.


I will when it is indeed solved. I'm not happy yet! I don't like the fact my monitor now goes into standby when I get to my login screen. That sucks. I don't understand why changing to DST screws everything up when the timezone-data-2007c was supposed to prevent that from happening. I really don't have the time to sit around googling and trying to fix things that shouldn't break in the first place. That bugs me, man!! This kind of thing should be handled by a simple update.

grofaz...out


have you looked at your bios date/time? perhaps your CMOS battery is dead and needs replacing... it was a simple update for me but really I feel like pulling my suggestion for using ntp...
Back to top
View user's profile Send private message
knifeyspoony
n00b
n00b


Joined: 01 Jun 2005
Posts: 70

PostPosted: Mon Mar 12, 2007 7:34 pm    Post subject: Reply with quote

That's one of the headaches many people associate with Linux. But I think of it as an opportunity to think more deeply about the way computers and operating systems work...

...although I wish the Gentoo maintainers would have just deleted Pacific time or made obvious that it's deprecated, since it doesn't work with DST.
Back to top
View user's profile Send private message
grofaz
Guru
Guru


Joined: 18 Sep 2005
Posts: 319

PostPosted: Mon Mar 12, 2007 8:13 pm    Post subject: Reply with quote

jonnevers wrote:


have you looked at your bios date/time? perhaps your CMOS battery is dead and needs replacing... it was a simple update for me but really I feel like pulling my suggestion for using ntp...


I don't know, clock worked fine before the time switch.
Back to top
View user's profile Send private message
gwong86
n00b
n00b


Joined: 06 Dec 2006
Posts: 12

PostPosted: Mon Mar 12, 2007 8:56 pm    Post subject: Clock still 1 hour behind Reply with quote

I was late updating the tzdata and now my clock is one hour behind. I emerged the timezone-data yesterday evening, restarted the server, and restarted ntp-client but no luck. Any ideas?
Back to top
View user's profile Send private message
knifeyspoony
n00b
n00b


Joined: 01 Jun 2005
Posts: 70

PostPosted: Mon Mar 12, 2007 9:24 pm    Post subject: Reply with quote

Does nightmorph's advice apply to you?

nightmorph wrote:
Don't use Pacific time. Use PST8PDT.

Note that you need to set this in /etc/conf.d/clock, this is the new way to set your time. If necessary, re-emerge timezone-data after setting TIMEZONE="PST8PDT" in /etc/conf.d/clock, and make sure that you haven't symlinked anything to /etc/localtime; just rm that file.

Once you've finished, run ntpdate -b -u pool.ntp.org to make sure things get fixed.
Back to top
View user's profile Send private message
gwong86
n00b
n00b


Joined: 06 Dec 2006
Posts: 12

PostPosted: Mon Mar 12, 2007 9:28 pm    Post subject: Reply with quote

It might. Right now i believe I am using EST for my time zone. I'm in Boston. I'm not sure what I would set the TIMEZONE= to in /etc/conf.d/clock though...
Back to top
View user's profile Send private message
knifeyspoony
n00b
n00b


Joined: 01 Jun 2005
Posts: 70

PostPosted: Mon Mar 12, 2007 9:32 pm    Post subject: Reply with quote

I believe you'd be EST5EDT:

http://docs.hp.com/en/36922-90036/apd.html
Back to top
View user's profile Send private message
gwong86
n00b
n00b


Joined: 06 Dec 2006
Posts: 12

PostPosted: Mon Mar 12, 2007 9:41 pm    Post subject: Reply with quote

That seemed to have worked. Thanks very much.
Back to top
View user's profile Send private message
grofaz
Guru
Guru


Joined: 18 Sep 2005
Posts: 319

PostPosted: Mon Mar 12, 2007 11:30 pm    Post subject: Reply with quote

knifeyspoony wrote:
Does nightmorph's advice apply to you?

nightmorph wrote:
Don't use Pacific time. Use PST8PDT.

Note that you need to set this in /etc/conf.d/clock, this is the new way to set your time. If necessary, re-emerge timezone-data after setting TIMEZONE="PST8PDT" in /etc/conf.d/clock, and make sure that you haven't symlinked anything to /etc/localtime; just rm that file.

Once you've finished, run ntpdate -b -u pool.ntp.org to make sure things get fixed.


I'll try this as well, thanks very much!
Back to top
View user's profile Send private message
grofaz
Guru
Guru


Joined: 18 Sep 2005
Posts: 319

PostPosted: Wed Mar 14, 2007 4:15 am    Post subject: Reply with quote

It works! I unmerged ntp and removed /etc/localtime. Then I re-merged timezone-data and all is well in gentooland!!

Thanks one and all for helping me get it sorted.

grofaz...out
Back to top
View user's profile Send private message
grofaz
Guru
Guru


Joined: 18 Sep 2005
Posts: 319

PostPosted: Wed Mar 14, 2007 4:14 pm    Post subject: Reply with quote

Oops! Reboot broke it again. Still unsolved I'm afraid. Any ideas ??
Back to top
View user's profile Send private message
knifeyspoony
n00b
n00b


Joined: 01 Jun 2005
Posts: 70

PostPosted: Wed Mar 14, 2007 6:35 pm    Post subject: Reply with quote

Reboot broke mine again too! But this time I had loaded Windows in between Gentoo loads. My Windows has not gotten the DST update. Now in Gentoo, my date is still in PDT, and my UTC time (date -u) is an hour behind as well. Windows must have changed my system time.

Running ntp-client now fixes it for me. Similar case for you?
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Wed Mar 14, 2007 6:41 pm    Post subject: Reply with quote

windows wreaks havoc on linux clocks.

One possible fix is to force the hardware clock in line with the
system time (after you get it set properly).

Code:
hwclock --systohc


Maybe this will work for grofaz too (worth a try anyway).
Back to top
View user's profile Send private message
grofaz
Guru
Guru


Joined: 18 Sep 2005
Posts: 319

PostPosted: Thu Mar 15, 2007 2:17 am    Post subject: Reply with quote

albright wrote:
windows wreaks havoc on linux clocks.

One possible fix is to force the hardware clock in line with the
system time (after you get it set properly).

Code:
hwclock --systohc


Maybe this will work for grofaz too (worth a try anyway).


I'll try that!
Back to top
View user's profile Send private message
xtlosx
Apprentice
Apprentice


Joined: 14 Jan 2006
Posts: 219
Location: Chicago

PostPosted: Thu Mar 15, 2007 11:32 am    Post subject: Reply with quote

I had the same issue.. after re emerging timezone-data i was an hour behind..

come to find out.. i was using EST instead of EST5EDT or whatever it is :)
_________________
Linux cebula 3.5.7-gentoo #3 SMP Fri Nov 9 15:26:37 CST 2012 i686 Genuine Intel(R) CPU 1300 @ 1.66GHz GenuineIntel GNU/Linux
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Fri Mar 16, 2007 6:57 pm    Post subject: Reply with quote

I was personally having problem with the timezoen not sticking when I suspended to disk. A clean reboot helped things.
Back to top
View user's profile Send private message
roki942
Apprentice
Apprentice


Joined: 18 Apr 2005
Posts: 285
Location: Seattle

PostPosted: Fri Mar 16, 2007 7:33 pm    Post subject: Reply with quote

albright wrote:
windows wreaks havoc on linux clocks.

One possible fix is to force the hardware clock in line with the
system time (after you get it set properly).

Code:
hwclock --systohc


Maybe this will work for grofaz too (worth a try anyway).


There is also in /etc/conf.d/clock
Code:
# If you want to set the Hardware Clock to the current System Time
# during shutdown, then say "yes" here.

CLOCK_SYSTOHC="yes"
Also shouldn't hurt to rm /etc/adjtime after resetting things and before reboot. The system will put /etc/adjtime back, removing it will keep a bad value from messing things up.
Back to top
View user's profile Send private message
grofaz
Guru
Guru


Joined: 18 Sep 2005
Posts: 319

PostPosted: Sat Mar 17, 2007 1:52 am    Post subject: Reply with quote

n00bsRus wrote:
albright wrote:
windows wreaks havoc on linux clocks.

One possible fix is to force the hardware clock in line with the
system time (after you get it set properly).

Code:
hwclock --systohc


Maybe this will work for grofaz too (worth a try anyway).


There is also in /etc/conf.d/clock
Code:
# If you want to set the Hardware Clock to the current System Time
# during shutdown, then say "yes" here.

CLOCK_SYSTOHC="yes"
Also shouldn't hurt to rm /etc/adjtime after resetting things and before reboot. The system will put /etc/adjtime back, removing it will keep a bad value from messing things up.


I assume that I must first correct the time according to my timezone using something like ntp. Or perhaps just date hhmmyyyy at the command line. Then rm /etc/adjtime. And change "no" to "yes" in /etc/conf.d/clock. Is that correct ?

I'm a little leary of messing about with my hw clock. Shouldn't the timezone-data-2007c do that ?

:)
Back to top
View user's profile Send private message
roki942
Apprentice
Apprentice


Joined: 18 Apr 2005
Posts: 285
Location: Seattle

PostPosted: Sat Mar 17, 2007 3:07 am    Post subject: Reply with quote

Check out these 2 threads .... they go into it much better than i can
https://forums.gentoo.org/viewtopic-t-545873-highlight-.html
https://forums.gentoo.org/viewtopic-p-3465846.html
Back to top
View user's profile Send private message
grofaz
Guru
Guru


Joined: 18 Sep 2005
Posts: 319

PostPosted: Fri Mar 23, 2007 7:34 am    Post subject: Reply with quote

Code:
hwclock --systohc
seems to have fixed it. Thanks to you all for helping.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum