• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1561
  • Last Modified:

How to change time zone in RHEL 5

Hi

I have two different server using two different time zones and want to make sure both uses same timezone.

So want to change the time zone used in Stage server to match with timezone used in Prod server.

Here below are the details of time zone used:

Stage Server:  Tue Aug 28 03:22:07 CDT 2012
Prod Server:    Tue Aug 28 08:22:39 UTC 2012

TO change the timezone in STAGE server i run utility (CLI) 'setup' and goto "Timezone Configuration" --> press ENTER, it shows list of time zone avaialbel to select.  

Now I am unable to understand which location should be selected from the list to match it with PROD server time zone "UTC".

Please suggest.
0
ashuji
Asked:
ashuji
  • 2
  • 2
1 Solution
 
omarfaridCommented:
UTC stands for universal Tile C ordination , on the prod server run

cat /etc/localtime
0
 
ashujiAuthor Commented:
HI

cat /etc/localtime returns below result on PROD server where present timezone is UTC:

#cat /etc/localtime
TZif2UTCTZif2UTC
UTC0
0
 
omarfaridCommented:
do the following

cp /etc/localtime  /etc/localtime-old
cd /etc
ln -sf /usr/share/zoneinfo/UTC localtime

follow other instructions in link below

http://www.geekride.com/howto-change-timezone-linux-unix/
0
 
ashujiAuthor Commented:
Exactly same command could solve the issue.
0

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now