Archive

Posts Tagged ‘timezone’

how to change timezone on my redhat server

March 25th, 2009 No comments

How do I change my system timezone from the command line without using redhat-config-date?

In order to change the timezone of your system you will need to access the file /etc/sysconfig/clock directly:

#ZONE=”America/New_York”
ZONE=”GMT”
UTC=false
ARC=false

Note: If your system’s BIOS has UTC set to true, then set UTC to true. If it has it set to false, set it to false. UTC in the configuration file must always reflect your BIOS settings.

In order to get the particular zone you wish to use you must associate ZONE with a file located in /usr/share/zoneinfo. It is wise to note the directory structure because if you need to set the timezone to that of Shanghai which is located in the Asia directory you will then have to set your ZONE variable to the following :

Read more…

Categories: Linux Tags:

Powered by WP Robot

Stop SOPAPowered by Yahoo! Answers