Time zone and BST woes in Europe/London

Daniel Procter picture Daniel Procter · Apr 2, 2012 · Viewed 16.3k times · Source

I am really struggling with my hwclock since the UK changed to British Summer Time (BST) last weekend on my Centos 5.8 KVM guest.

Here's some command outputs..


    [root@host ~]# TZ=Europe/London date
    Mon Apr  2 08:12:03 EDT 2012
    [root@host ~]# TZ=Europe/Jersey date
    Mon Apr  2 08:12:11 EDT 2012
    [root@host ~]# TZ=Europe/Paris date 
    Mon Apr  2 14:12:16 CEST 2012
    [root@host ~]# TZ=Europe/Rome date 
    Mon Apr  2 14:12:22 CEST 2012
    [root@host ~]# TZ=Europe/Athens date
    Mon Apr  2 15:12:27 EEST 2012


    [root@host ~]# 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

And finally when I ln -sf to Europe/London it just goes back to EDT :(


    [root@host ~]# ln -sf /usr/share/zoneinfo/Europe/London /etc/localtime
    [root@host ~]# date
    Mon Apr  2 08:23:02 EDT 2012

:(

Here's also some contents of files:

 

    [root@host ~]# cat /etc/sysconfig/clock
    ZONE="Europe/London"
    UTC=true
    ARC=false

Really struggling here guy and have googled til my eyes popped out but to no avail.

Answer

Judder picture Judder · Apr 13, 2012

smybolically linking the files doesn't work - they need to be physically copied

[root@xxx]# mv /etc/localtime /etc/localtime.default
[root@xxx]# cp /usr/share/zoneinfo/Europe/London /etc/localtime
[root@xxx]# date
Fri Apr 13 11:35:57 BST 2012

Hope that helps :-)