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 Basics > Issue <<  667 of 909 >>

Solution Tools:


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

Article Reference

Article ID: 11408
Last update: 10-30-08
Issue:
How I can prevent daylight saving time adjustment and instead specify the desired hour offset?
Resolution:

Sometimes, it is needed to prevent daylight saving time adjustment set the timezone to GMT and instead specify the desired hour offset. Accordingly to the Posix standard the offset in the time zone is defined as "the time value you must add to the local time to get a Coordinated Universal Time value" (from: http://www.gnu.org/software/libc/manual/html_node/TZ-Variable.html). This means that if the desired time is one hour plus GMT the timezone to specify will be GMT-1 and not GMT+1.

For example if it is required to prevent the daylight saving time adjustment on a machine that is located in Italy where the time is one hour plus GMT you can follow these steps:

Open /etc/sysconfig/clock and set the timezone to Etc/GMT-1:

ZONE="Etc/GMT-1"


Replace the current /etc/localtime with the GMT-1 zone info file:

# ln -sf /usr/share/zoneinfo/Etc/GMT-1 /etc/localtime


Check that the timemezone change is in effective using date command:

# date
Tue Sep 11 11:17:45 BST 2007

 


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Enterprise Linux > AS/ES/WS Basics > Issue <<   667  of  909  >>