1 |
Benno Schulenberg a écrit : |
2 |
> Charles Trois wrote: |
3 |
> |
4 |
>>The legal time, here in France and at this (winter) period, is |
5 |
>>GMT + 1, as shown correctly by the clock of my iMac, but "date" |
6 |
>>keeps returning GMT + 2. |
7 |
> |
8 |
> |
9 |
> Sounds like your harware clock is running at local time. What does |
10 |
> 'hwclock --show --debug' say? Look for the line saying "Time read |
11 |
> from Hardware Clock:". |
12 |
> |
13 |
> If the hardware clock is really set at UTC, do you maybe have TZ |
14 |
> set? 'echo $TZ'. If it is, then unset it: 'unset TZ', and then |
15 |
> see if date and hwclock operate correctly. And also check that the |
16 |
> symlink /etc/localtime points at the correct zone. |
17 |
> |
18 |
> Benno |
19 |
|
20 |
Here are the results: |
21 |
|
22 |
~ # hwclock --show --debug |
23 |
hwclock from util-linux-2.12i |
24 |
Using /dev/rtc interface to clock. |
25 |
... |
26 |
Hardware clock is on local time |
27 |
Assuming hardware clock is kept in local time. |
28 |
Waiting for clock tick... |
29 |
... |
30 |
Time read from Hardware Clock: 2005/11/23 19:04:14 |
31 |
Hw clock time : 2005/11/23 19:04:14 = 1132769054 seconds since 1969 |
32 |
Wed Nov 23 19:04:14 2005 -0.188934 seconds |
33 |
|
34 |
|
35 |
~ # ls -l /etc/localtime |
36 |
lrwxrwxrwx 1 root root 32 Nov 22 20:39 /etc/localtime -> |
37 |
/usr/share/zoneinfo/Europe/Paris |
38 |
|
39 |
and in /etc/conf.d/clock: |
40 |
|
41 |
CLOCK="local" |
42 |
|
43 |
echo $TZ returns nothing, so TZ is presumably not set. |
44 |
|
45 |
All that seems correct to me, and yet the time returned by "date" is |
46 |
still one hour fast. |
47 |
|
48 |
What else can I check? |
49 |
|
50 |
Charles |
51 |
|
52 |
|
53 |
|
54 |
-- |
55 |
gentoo-user@g.o mailing list |