1 |
Hello Michael, |
2 |
|
3 |
Michael Sullivan <michael@××××××××××××.com> writes: |
4 |
|
5 |
> I feel really stupid having to ask this here, but in what file is the |
6 |
> TIMEZONE variable set? My PC clock is set by ntp and it's not being |
7 |
> updated for DST. Wherever the variable is, it's not set. I never |
8 |
> updated it becuase I heard it wasn't actually being used yet, but I |
9 |
> think if I set it my machine's time might get updated for DST. I can't |
10 |
> find the stupid variable though. The one that replaces /etc/localtime. |
11 |
> Can anyone help me out? |
12 |
|
13 |
Here is what I did to update all my boxes for the DST change on March |
14 |
11, thanks to the people who responded to my question on this topic |
15 |
last week: |
16 |
|
17 |
(1) Sync. |
18 |
|
19 |
(2) emerge timezone-data (should be >= 2006p) |
20 |
|
21 |
(3) set TIMEZONE="Canada/Newfoundland" in /etc/conf.d/clock (adjust |
22 |
for your local time zone). |
23 |
|
24 |
(4) rm /etc/localtime && cp /usr/share/zoneinfo/Canada/Newfoundland |
25 |
/etc/localtime (adjust for your local time zone). |
26 |
|
27 |
(5) Check: zdump -v /etc/localtime | grep 2007. |
28 |
For timezone-data = 2007c it shows: |
29 |
|
30 |
/etc/localtime Sun Mar 11 03:30:59 2007 UTC = Sun Mar 11 00:00:59 2007 NST isdst=0 |
31 |
/etc/localtime Sun Mar 11 03:31:00 2007 UTC = Sun Mar 11 01:01:00 2007 NDT isdst=1 |
32 |
/etc/localtime Sun Nov 4 02:30:59 2007 UTC = Sun Nov 4 00:00:59 2007 NDT isdst=1 |
33 |
/etc/localtime Sun Nov 4 02:31:00 2007 UTC = Sat Nov 3 23:01:00 |
34 |
2007 NST isdst=0 |
35 |
|
36 |
All my boxes are running on NDT correctly. |
37 |
|
38 |
HTH, |
39 |
|
40 |
Roger |
41 |
|
42 |
-- |
43 |
gentoo-user@g.o mailing list |