自從英國CentOS 5.8 KVM客人上週末改爲英國夏令時(BST)以來,我真的很苦惱。歐洲/倫敦時區和BST災難
這裏的一些命令輸出..
[[email protected] ~]# TZ=Europe/London date Mon Apr 2 08:12:03 EDT 2012 [[email protected] ~]# TZ=Europe/Jersey date Mon Apr 2 08:12:11 EDT 2012 [[email protected] ~]# TZ=Europe/Paris date Mon Apr 2 14:12:16 CEST 2012 [[email protected] ~]# TZ=Europe/Rome date Mon Apr 2 14:12:22 CEST 2012 [[email protected] ~]# TZ=Europe/Athens date Mon Apr 2 15:12:27 EEST 2012 [[email protected] ~]# hwclock -rD hwclock from util-linux-2.13-pre7 Using /dev/rtc interface to clock. Last drift adjustment done at 1333367010 seconds after 1969 Last calibration done at 1333367010 seconds after 1969 Hardware clock is on UTC time Assuming hardware clock is kept in UTC time. Waiting for clock tick... /dev/rtc does not have interrupt functions. Waiting in loop for time from /dev/rtc to change ...got clock tick Time read from Hardware Clock: 2012/04/02 12:22:27 Hw clock time : 2012/04/02 12:22:27 = 1333369347 seconds since 1969 Mon 02 Apr 2012 12:22:27 PM UTC -0.422061 seconds
最後當我LN -sf歐洲/倫敦只是追溯到EDT :(
[[email protected] ~]# ln -sf /usr/share/zoneinfo/Europe/London /etc/localtime [[email protected] ~]# date Mon Apr 2 08:23:02 EDT 2012
:(
這裏的還有一些文件內容:
[[email protected] ~]# cat /etc/sysconfig/clock ZONE="Europe/London" UTC=true ARC=false
真的在這裏掙扎的人,並一直在我的眼睛彈出,但無濟於事。
安裝NTP,忘掉HWclock。 – wildplasser 2012-04-02 12:34:37
這個問題是無關緊要的,因爲它與編程無關。 – Oded 2012-04-02 12:35:56
對不起的話題。我沒有意識到我選擇了編程... *新手*我可以移動它嗎? – 2012-04-02 12:50:09