* Re: [gentoo-user] Clock/Daylight Savings
2007-04-19 9:10 [gentoo-user] Clock/Daylight Savings Randy Barlow
@ 2007-04-19 7:36 ` Rostislav
2007-04-19 7:54 ` Elias Probst
2007-04-19 8:08 ` [gentoo-user] " Anno v. Heimburg
` (2 subsequent siblings)
3 siblings, 1 reply; 11+ messages in thread
From: Rostislav @ 2007-04-19 7:36 UTC (permalink / raw
To: gentoo-user
On Thu, 19 Apr 2007, Randy Barlow wrote:
> Ever since the new daylight savings change, my clock hasn't done the "Spring
> Forward". I use ntp and the like, and it seems happy being behind by an
> hour. I can use the date command to set it correctly, but after the next
> reboot it's back to its old games. Pointers?
>
> R
There are two different clocks: system clock controlled by kernel and hardware clock.
The latter is used to set up the system clock at the boot time.
Seems like it wasn't changed with daylight savings change.
Use "hwclock --systohc" to set hardware clock to the current system
time.
Regards,
Rostislav.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Clock/Daylight Savings
2007-04-19 7:36 ` Rostislav
@ 2007-04-19 7:54 ` Elias Probst
0 siblings, 0 replies; 11+ messages in thread
From: Elias Probst @ 2007-04-19 7:54 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 419 bytes --]
On Thursday 19 April 2007 09:36:07 Rostislav wrote:
> Seems like it wasn't changed with daylight savings change.
> Use "hwclock --systohc" to set hardware clock to the current system
> time.
If you don't use a dualboot system, just the this option in /etc/conf.d/clock:
# If you want to set the Hardware Clock to the current System Time
# during shutdown, then say "yes" here.
CLOCK_SYSTOHC="yes"
Regards,
Elias P.
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* [gentoo-user] Re: Clock/Daylight Savings
2007-04-19 9:10 [gentoo-user] Clock/Daylight Savings Randy Barlow
2007-04-19 7:36 ` Rostislav
@ 2007-04-19 8:08 ` Anno v. Heimburg
2007-04-20 4:21 ` Randy Barlow
2007-04-19 10:17 ` [gentoo-user] " Boyd Stephen Smith Jr.
2007-04-20 4:38 ` [gentoo-user] SOLVED: " Randy Barlow
3 siblings, 1 reply; 11+ messages in thread
From: Anno v. Heimburg @ 2007-04-19 8:08 UTC (permalink / raw
To: gentoo-user
Randy Barlow wrote:
> "Spring Forward". I use ntp and the like, and it seems happy being
> behind by an hour. I can use the date command to set it correctly, but
> after the next reboot it's back to its old games. Pointers?
Check that you have your timezones set correctly. Unix systems track time in
UTC or Greenwich Mean Time*, that internal date is then converted to local
time using the timezone you set. During that conversion process DST
adjustment happens, too. All that ntp does is make sure that your system
time in UTC is correct. If your conversion to local time is incorrect, ntp
can do nothing about it. Similarly, the hardware clock is also set to UTC.
Your problem, especially considering you run ntp, seems to be a
UTC-to-local-time conversion issue rather than an incorrectly adjusted UTC
clock.
HTH,
Anno.
*) Actually in number-of-seconds since January 1, 1970, 00:00 UTC.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* [gentoo-user] Clock/Daylight Savings
@ 2007-04-19 9:10 Randy Barlow
2007-04-19 7:36 ` Rostislav
` (3 more replies)
0 siblings, 4 replies; 11+ messages in thread
From: Randy Barlow @ 2007-04-19 9:10 UTC (permalink / raw
To: gentoo-user
Ever since the new daylight savings change, my clock hasn't done the
"Spring Forward". I use ntp and the like, and it seems happy being
behind by an hour. I can use the date command to set it correctly, but
after the next reboot it's back to its old games. Pointers?
R
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Clock/Daylight Savings
2007-04-19 9:10 [gentoo-user] Clock/Daylight Savings Randy Barlow
2007-04-19 7:36 ` Rostislav
2007-04-19 8:08 ` [gentoo-user] " Anno v. Heimburg
@ 2007-04-19 10:17 ` Boyd Stephen Smith Jr.
2007-04-19 12:19 ` Dan Cowsill
2007-04-20 4:38 ` [gentoo-user] SOLVED: " Randy Barlow
3 siblings, 1 reply; 11+ messages in thread
From: Boyd Stephen Smith Jr. @ 2007-04-19 10:17 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1332 bytes --]
On Thursday 19 April 2007 04:10:58 Randy Barlow wrote:
> Ever since the new daylight savings change, my clock hasn't done the
> "Spring Forward". I use ntp and the like, and it seems happy being
> behind by an hour.
ntp (and the like) use UTC, which does not "Spring Forward" or "Fall Back",
as
everything that really cares about accurate time should.
> I can use the date command to set it correctly, but
> after the next reboot it's back to its old games. Pointers?
You probably need to make sure your TIMEZONE in /etc/conf.d/clock and/or
or /etc/localtime are set properly.
Generally, you DON'T want to set them to CST (or similar) since that
doesn't
sf/fb either (instead most of the area covered by CST switches to CDT),
although some like CST6CDT might work.
Instead you'll want to use (Type/)Region/(SubRegion/)City for a city that
uses
the same timezone rules as you. E.g. America/Chicago,
America/Kentucky/Monticello, posix/US/Central, or
right/America/Indiana/Knox
(All the timezones supported by your libc are under /usr/share/zoneinfo.)
--
Boyd Stephen Smith Jr. ,= ,-_-. =.
bss03@volumehost.net ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.org/ \_/
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Clock/Daylight Savings
2007-04-19 10:17 ` [gentoo-user] " Boyd Stephen Smith Jr.
@ 2007-04-19 12:19 ` Dan Cowsill
2007-04-19 12:33 ` Boyd Stephen Smith Jr.
0 siblings, 1 reply; 11+ messages in thread
From: Dan Cowsill @ 2007-04-19 12:19 UTC (permalink / raw
To: gentoo-user
I dual boot windows on my system, and for some reason, windows can't
keep the time straight after the change. What used to happen is I'd
have openntp sync my clock, then restart to play some games. After
booting back into Gentoo, ntpd would see such a large difference in
what the time is supposed to be and what it actually is according to
the hwclock that it just wouldn't sync!
The solution was to use ntpclient on default runlevel, as it just
syncs the clock with no special conditions. Of course, you can run
both if your into that sort of thing. I use ntpd to set my clock to
UTC time and then use zoneinfo to set it back to Eastern Standard.
Works like a charm. Oh, and UTC is generally a good idea because it
isn't affected by daylight savings time at all :)
Hope this helps.
--
-·=»Ðŧħ«=·-
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Clock/Daylight Savings
2007-04-19 12:19 ` Dan Cowsill
@ 2007-04-19 12:33 ` Boyd Stephen Smith Jr.
2007-04-19 13:15 ` Neil Walker
2007-04-19 13:37 ` Alan McKinnon
0 siblings, 2 replies; 11+ messages in thread
From: Boyd Stephen Smith Jr. @ 2007-04-19 12:33 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 718 bytes --]
On Thursday 19 April 2007, "Dan Cowsill" <danthehat@gmail.com> wrote
about 'Re: [gentoo-user] Clock/Daylight Savings':
> I dual boot windows on my system, and for some reason, windows can't
> keep the time straight after the change.
Windows expects the hardware clock to be in local time. (Open)NTPd uses
UTC for all it's time values. You have to do some magic that I don't know
to get Linux/BSD ntp daemons to play well with windows *and* properly
correct for time.
--
Boyd Stephen Smith Jr. ,= ,-_-. =.
bss03@volumehost.net ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.org/ \_/
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Clock/Daylight Savings
2007-04-19 12:33 ` Boyd Stephen Smith Jr.
@ 2007-04-19 13:15 ` Neil Walker
2007-04-19 13:37 ` Alan McKinnon
1 sibling, 0 replies; 11+ messages in thread
From: Neil Walker @ 2007-04-19 13:15 UTC (permalink / raw
To: gentoo-user
Boyd Stephen Smith Jr. wrote:
> Windows expects the hardware clock to be in local time. (Open)NTPd uses
> UTC for all it's time values. You have to do some magic that I don't know
> to get Linux/BSD ntp daemons to play well with windows *and* properly
> correct for time.
Well, "CLOCK="local"" in /etc/conf.d/clock works for me on my dual boot
system. ;)
Be lucky,
Neil
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Clock/Daylight Savings
2007-04-19 12:33 ` Boyd Stephen Smith Jr.
2007-04-19 13:15 ` Neil Walker
@ 2007-04-19 13:37 ` Alan McKinnon
1 sibling, 0 replies; 11+ messages in thread
From: Alan McKinnon @ 2007-04-19 13:37 UTC (permalink / raw
To: gentoo-user
On Thursday 19 April 2007, Boyd Stephen Smith Jr. wrote:
> On Thursday 19 April 2007, "Dan Cowsill" <danthehat@gmail.com> wrote
>
> about 'Re: [gentoo-user] Clock/Daylight Savings':
> > I dual boot windows on my system, and for some reason, windows
> > can't keep the time straight after the change.
>
> Windows expects the hardware clock to be in local time. (Open)NTPd
> uses UTC for all it's time values. You have to do some magic that I
> don't know to get Linux/BSD ntp daemons to play well with windows
> *and* properly correct for time.
Can that even be done without a kludge?
The only method I can think of would be to adjust the Windows time when
it boots, and to ensure Windows never updates the hardware clock.
My TZ is GMT +2, and on my own dual-boot machines I had to decide
whether *nix or Windows would have broken time settings. I'm happy to
report that the decision was really a no-brainer...
alan
--
Optimists say the glass is half full,
Pessimists say the glass is half empty,
Developers say wtf is the glass twice as big as it needs to be?
Alan McKinnon
alan at linuxholdings dot co dot za
+27 82, double three seven, one nine three five
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Re: Clock/Daylight Savings
2007-04-19 8:08 ` [gentoo-user] " Anno v. Heimburg
@ 2007-04-20 4:21 ` Randy Barlow
0 siblings, 0 replies; 11+ messages in thread
From: Randy Barlow @ 2007-04-20 4:21 UTC (permalink / raw
To: gentoo-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Anno v. Heimburg wrote:
> Check that you have your timezones set correctly.
In /etc/conf.d/clock I have:
TIMEZONE="America/New_York"
This should be what it takes to get my system to the correct time I
think! Any other ideas?
R
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGKD+w7So1xaF/eR8RAkzNAJ0V/ZRly95fr0kAATHwG7pkvebC3gCgu//l
I7gdcpDWW22SaQjU3EbZLR4=
=z6Z5
-----END PGP SIGNATURE-----
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] SOLVED: Clock/Daylight Savings
2007-04-19 9:10 [gentoo-user] Clock/Daylight Savings Randy Barlow
` (2 preceding siblings ...)
2007-04-19 10:17 ` [gentoo-user] " Boyd Stephen Smith Jr.
@ 2007-04-20 4:38 ` Randy Barlow
3 siblings, 0 replies; 11+ messages in thread
From: Randy Barlow @ 2007-04-20 4:38 UTC (permalink / raw
To: gentoo-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Randy Barlow wrote:
> Ever since the new daylight savings change, my clock hasn't done the
> "Spring Forward". I use ntp and the like, and it seems happy being
> behind by an hour. I can use the date command to set it correctly, but
> after the next reboot it's back to its old games. Pointers?
It turns out that I had copied the EST timezone to /etc/localtime, but
had my TIMEZONE set to America/New_York. I copied the America/New_York
time zone to /etc/localtime, rebooted, and it worked! Thanks for all
the suggestions gentooers!
R
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGKEPd7So1xaF/eR8RAhcHAKCwmxT02ZuU9IKV4XZ/nGQJVFQoFgCgkdCx
WRjJ0uRc8cPBEr3SonFLlZk=
=uP4V
-----END PGP SIGNATURE-----
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2007-04-20 4:44 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-19 9:10 [gentoo-user] Clock/Daylight Savings Randy Barlow
2007-04-19 7:36 ` Rostislav
2007-04-19 7:54 ` Elias Probst
2007-04-19 8:08 ` [gentoo-user] " Anno v. Heimburg
2007-04-20 4:21 ` Randy Barlow
2007-04-19 10:17 ` [gentoo-user] " Boyd Stephen Smith Jr.
2007-04-19 12:19 ` Dan Cowsill
2007-04-19 12:33 ` Boyd Stephen Smith Jr.
2007-04-19 13:15 ` Neil Walker
2007-04-19 13:37 ` Alan McKinnon
2007-04-20 4:38 ` [gentoo-user] SOLVED: " Randy Barlow
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox