Operating System - Linux
1827688 Members
4122 Online
109967 Solutions
New Discussion

Re: Time not correct on new Linux System

 
SOLVED
Go to solution
KPS
Super Advisor

Time not correct on new Linux System

Hi,

I have a new Red Hat AS2.1 System that we just imaged recently and have noticed that it's not showing the correct time and date. We do have a ntpserver that we have all servers pull the time from which gets it's time from externally.

Any ideas on how I should set this up?
5 REPLIES 5
Fred Ruffet
Honored Contributor

Re: Time not correct on new Linux System

You probably have a bad Timezone on this server. Have a look at your setup (if setup utility also exist on AS).

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
KPS
Super Advisor

Re: Time not correct on new Linux System

Is a good way to look at this setup via
the command "dateconfig"???
Ranjith_5
Honored Contributor
Solution

Re: Time not correct on new Linux System

Hi Ken,

Here is a complete document Just prepared for u.


Enjoy..

regards,
Syam
Ross Minkov
Esteemed Contributor

Re: Time not correct on new Linux System

Changing timezone -- Red Hat
============================

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

# vi /etc/sysconfig/clock

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

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 :

ZONE="Asia/Shanghai"

Or perhaps you need to set the timezone to that of East Brazil :

ZONE="Brazil/East"

Finally save the file /etc/sysconfig/clock and on next reboot the system will be set to the defined timezone.

For the time on the machine to reflect the change timezone we need to link the zoneinfo file to /etc/localtime. This can be done as follows :

If you are setting your timezone to "Brazil/East" link the following file to /etc/localtime :

# ln -sf /usr/share/zoneinfo/Brazil/East /etc/localtime

Now by typing the date command to display the time you should see if reflect the newly linked timezone :

# date
Thu Sep 30 10:06:23 BRT 2004


HTH,
Ross
Ross Minkov
Esteemed Contributor

Re: Time not correct on new Linux System

...or use redhat-config-date

;-)