Benno Schulenberg a écrit :
Charles Trois wrote:
The legal time, here in France and at this (winter) period, is
GMT + 1, as shown correctly by the clock of my iMac, but "date"
keeps returning GMT + 2.
Sounds like your harware clock is running at local time. What does
'hwclock --show --debug' say? Look for the line saying "Time read
from Hardware Clock:".
If the hardware clock is really set at UTC, do you maybe have TZ
set? 'echo $TZ'. If it is, then unset it: 'unset TZ', and then
see if date and hwclock operate correctly. And also check that the
symlink /etc/localtime points at the correct zone.
Benno
Here are the results:
~ # hwclock --show --debug
hwclock from util-linux-2.12i
Using /dev/rtc interface to clock.
...
Hardware clock is on local time
Assuming hardware clock is kept in local time.
Waiting for clock tick...
...
Time read from Hardware Clock: 2005/11/23 19:04:14
Hw clock time : 2005/11/23 19:04:14 = 1132769054 seconds since 1969
Wed Nov 23 19:04:14 2005 -0.188934 seconds
~ # ls -l /etc/localtime
lrwxrwxrwx 1 root root 32 Nov 22 20:39 /etc/localtime ->
/usr/share/zoneinfo/Europe/Paris
and in /etc/conf.d/clock:
CLOCK="local"
echo $TZ returns nothing, so TZ is presumably not set.
All that seems correct to me, and yet the time returned by "date" is
still one hour fast.
What else can I check?
Charles
--
[email protected] mailing list