Alors, j’ai un beau décalage d’une heure dans ma date sur une machine debian et je ne comprends pas pourquoi. Par exemple, là, il est 11h30 et j’obtiens:
Luyten:/home/Mathieu# date
jeudi 3 février 2011, 12:24:47 (UTC+0100)
On vérifie un peu les paramètres:
Luyten:/home/Mathieu# cat /etc/timezone
Europe/Paris
Luyten:/home/Mathieu# cat /etc/default/ntpdate
NTPDATE_USE_NTP_CONF=yes
NTPSERVERS=“0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.org"
NTPOPTIONS=”"
Luyten:/home/Mathieu# zdump -c 2011 -v Europe/Paris|grep 2010
Europe/Paris Sun Mar 28 00:59:59 2010 UTC = Sun Mar 28 01:59:59 2010 CET isdst=0 gmtoff=3600
Europe/Paris Sun Mar 28 01:00:00 2010 UTC = Sun Mar 28 03:00:00 2010 CEST isdst=1 gmtoff=7200
Europe/Paris Sun Oct 31 00:59:59 2010 UTC = Sun Oct 31 02:59:59 2010 CEST isdst=1 gmtoff=7200
Europe/Paris Sun Oct 31 01:00:00 2010 UTC = Sun Oct 31 02:00:00 2010 CET isdst=0 gmtoff=3600
Bref, pourquoi j’ai ce décalage à la con?
Ok, je me réponds à moi même. J’avais installé ntpdate mais pas ntpd. L’installation de ntpd corrige le souci.