Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, I have a question regarding how timezones are working. Indeed, if I configure "TZ=BST", I get: sh-3.2$ date Fri May 13 07:43:39 BST 2011 And when I configure "TZ=Europe/London", ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2011
    Posts
    2

    BST and Europe timezone configuration


    Hi,

    I have a question regarding how timezones are working.
    Indeed, if I configure "TZ=BST", I get:
    sh-3.2$ date
    Fri May 13 07:43:39 BST 2011


    And when I configure "TZ=Europe/London", I get:
    sh-3.2$ date
    Fri May 13 08:43:20 BST 2011

    There is no BST file in /usr/share/zoneinfo, so I am asking how it is managed for BST settings and why it is different from setting Europe/London.

    thanks in advance

    Alex

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,533
    I think it is because one is daylight saving time enabled (Europe/London), but the raw BST (British Standard Time) is not? That's all I can figure out. I get the same results you do on my SL6 (RHEL6) system, but since we (in Chicago) are on US CDT (Central Daylight Time), the proper offset from London should be 6 hours, which the TZ=Europe/London setting gives. Setting TZ=GMT, the offset is 5 hours, which computes with the daylight saving time setting (1 hour later than standard time).
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    May 2007
    Posts
    72
    Is it because "BST" simply isn't recognised, so date defaults to giving system time, ie UT (GMT)?
    That's my best guess.

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,533
    Quote Originally Posted by impert View Post
    Is it because "BST" simply isn't recognised, so date defaults to giving system time, ie UT (GMT)?
    That's my best guess.
    That's a likely scenario, assuming their RTC is set using GMT. Usually that's the case, but not necessarily.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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