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

RH9 Time Zone

I am unable to change local Time to GMT. For example my date always shows;
Wed Mar 31 10:32:03 AST 2004.
So How do I get the system to output the following;
Wed Mar 31 10:32:03 GMT 2004

What I have done so far;
1) Sys clock os set to UTC.
2)/etc/sysconfig/clock:
*************
ZONE="GMT"
UTC=true
ARC=false
*************
3)Did not find any time zone selection in the bios.

Is there another file that needs to be configured or another service to be restarted? Any help in this matter would be greatly appreciated.
0
Fodder
Asked:
Fodder
  • 2
  • 2
1 Solution
 
pablouruguayCommented:
2 ways....

first try to conect a ntp server.. for automatic time and date.. or another you have the wrong timezone

you need to make and change this
remove /etc/local and


ln -sf /usr/share/zoneinfo/<timezone output> /etc/localtime

for example

ln -sf /usr/share/zoneinfo/EST5EDT /etc/localtime

or another web example

ln -sf /usr/share/zoneinfo/Canada/Eastern /etc/localtime

0
 
FodderAuthor Commented:
So for example I want my time to be
Wed Mar 31 20:23:28 GMT 2004

I would ln -sf /usr/share/zoneinfo/Greenwich /etc/localtime

So will this over ride the /etc/localtime or does this file have to be removed.
0
 
pablouruguayCommented:
the file could be remove before you make the ls.

the ls -s option create a file /etc/localtime in this example.
0
 
FodderAuthor Commented:
Sorry for not getting back to you sooner, I had a production server go down. Anyway that works very well and I have learned something new. Many thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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