Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, I've been tasked with making sure our timezone on our GNU Linux box will change from BST to GMT when the clocks change sjp17ora01vm 2.6.18-164.0.0.0.1.el5xen #1 SMP Thu Sep ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2011
    Posts
    2

    How will I find out if my timezone will change automatically


    Hi,

    I've been tasked with making sure our timezone on our GNU Linux box will change from BST to GMT when the clocks change

    sjp17ora01vm 2.6.18-164.0.0.0.1.el5xen #1 SMP Thu Sep 3 00:34:43 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

    What needs to be in place to do this?

    I've read that the /usr/share/zoneinfo needs to link /etc/localtime pointing to your time zone change it to link to GMT in /usr/share/zoneinfo

    Is this the case

    Please help

    Paul

  2. #2
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,190
    Do you mean with the change from Daylight Savings Time? I never have to deal with that as we don't use DST but a quick google brought up this:

    Daylight Saving Time (DST) Handling in Linux

    f that doesn't satisfy you, just google "linux daylight savings time change". You'll get a lot of hits.

  3. #3
    Linux Newbie
    Join Date
    Jun 2004
    Location
    Halesowen, West Midlands, UK
    Posts
    107
    Quote Originally Posted by pablinux View Post
    Hi,

    I've been tasked with making sure our timezone on our GNU Linux box will change from BST to GMT when the clocks change

    sjp17ora01vm 2.6.18-164.0.0.0.1.el5xen #1 SMP Thu Sep 3 00:34:43 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

    What needs to be in place to do this?

    I've read that the /usr/share/zoneinfo needs to link /etc/localtime pointing to your time zone change it to link to GMT in /usr/share/zoneinfo

    Is this the case

    Please help

    Paul
    Date/Time should have been set up at install time and changes between GMT and BST happen automatically.
    From /usr/share/zoneinfo, these are the links
    lrwxrwxrwx 1 root root 13 2011-10-07 00:27 GB -> Europe/London
    lrwxrwxrwx 1 root root 13 2011-10-07 00:27 GB-Eire -> Europe/London
    lrwxrwxrwx 1 root root 7 2011-10-07 00:27 GMT -> Etc/GMT
    lrwxrwxrwx 1 root root 7 2011-10-07 00:27 GMT0 -> Etc/GMT
    lrwxrwxrwx 1 root root 7 2011-10-07 00:27 GMT-0 -> Etc/GMT
    lrwxrwxrwx 1 root root 7 2011-10-07 00:27 GMT+0 -> Etc/GMT
    lrwxrwxrwx 1 root root 7 2011-10-07 00:27 Greenwich -> Etc/GMT

    I can't remember if I ever had to manually take care of time changes going back over 20 years and many distros.
    Currently running Ubuntu and openSUSE and it has always happened automatically. If it ever didn't, I certainly would file a bug against whatever distro didn't take care of it.

  4. #4
    Just Joined!
    Join Date
    Oct 2011
    Posts
    2
    Both servers are set to UTC which is the preferred option to keep it in daylight savings


    # The timezone of the system is defined by the contents of /etc/localtime.
    ZONE="Europe/London"
    UTC=true
    ARC=false
    $ date -u
    Wed Oct 12 14:28:36 UTC 2011

    $ date
    Wed Oct 12 15:38:31 BST 2011

    I have nothing linked in /usr/share/zoneinfo

    So I'm hoping this will automatically get update

    Paul

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •