Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Enterprise Linux > AS/ES/WS v. 4 > Issue <<  106 of 601 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 9714
Last update: 12-11-06
Issue:
How can I check for timezone changes and when they will occur such as daylight savings on Red Hat Enterprise Linux 4?
Resolution:

Release Found: Tested on Red Hat Enterprise Linux 4

Solution:

The zdump utility which comes with glibc-common, can be used to output timezone data. For example, the following command will output all timezone data for Australia/Queensland:

# zdump -v Australia/Queensland

Some timezones contain large amounts of changes, in these cases, pipe the above command to less, for example:

# zdump -v Australia/Queensland | less

The following is an example of how to check for timezone changes between different versions of the tzdata package:

# rpm -Uvh --oldpackage tzdata-2005f-1.EL4.noarch.rpm
Preparing...                ########################################### [100%]
   1:tzdata                 ########################################### [100%]
# zdump -v America/Los_Angeles|grep 2007
America/Los_Angeles  Sun Apr  1 09:59:59 2007 UTC = Sun Apr  1 01:59:59 2007 PST isdst=0 gmtoff=-28800
America/Los_Angeles  Sun Apr  1 10:00:00 2007 UTC = Sun Apr  1 03:00:00 2007 PDT isdst=1 gmtoff=-25200
America/Los_Angeles  Sun Oct 28 08:59:59 2007 UTC = Sun Oct 28 01:59:59 2007 PDT isdst=1 gmtoff=-25200
America/Los_Angeles  Sun Oct 28 09:00:00 2007 UTC = Sun Oct 28 01:00:00 2007 PST isdst=0 gmtoff=-28800

# rpm -Uvh tzdata-2005m-1.EL4.noarch.rpm
Preparing...                ########################################### [100%]
   1:tzdata                 ########################################### [100%]
# zdump -v America/Los_Angeles|grep 2007
America/Los_Angeles  Sun Mar 11 09:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 PST isdst=0 gmtoff=-28800
America/Los_Angeles  Sun Mar 11 10:00:00 2007 UTC = Sun Mar 11 03:00:00 2007 PDT isdst=1 gmtoff=-25200
America/Los_Angeles  Sun Nov  4 08:59:59 2007 UTC = Sun Nov  4 01:59:59 2007 PDT isdst=1 gmtoff=-25200
America/Los_Angeles  Sun Nov  4 09:00:00 2007 UTC = Sun Nov  4 01:00:00 2007 PST isdst=0 gmtoff=-28800

The output above indicates daylight savings changes with the string isdst.

Note: For a list of timezones refer to the files under /usr/share/zoneinfo/.


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Enterprise Linux > AS/ES/WS v. 4 > Issue <<   106  of  601  >>