Link to home
Start Free TrialLog in
Avatar of AdrianSmithUK
AdrianSmithUK

asked on

Centos 5.4: How to set time and date.

I need to set the time, date and timezone to UK with daylight saving on.

How do I do it?
SOLUTION
Avatar of medvedd
medvedd

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AdrianSmithUK
AdrianSmithUK

ASKER

Hi Medvedd

Didn't work unfortunatly. Here is what I got.



[root@s15345671 ~]# cd /etc
[root etc]# ln -sf /usr/share/zoneinfo/Europe/London localtime
[root]# date
Fri Mar 26 00:40:45 EDT 2010

Open in new window

OK, try to use command

system-config-date

Here's the result.

[root@s15345671 /]# system-config-date
-bash: system-config-date: command not found
Hmm. It should be in

/usr/bin/system-config-date
Afraid not. I only have a minimal installation. ie First disk.

[root@s15345671 /]# /usr/bin/system-config-date
-bash: /usr/bin/system-config-date: No such file or directory
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi Berniep

Thanks for the info. Unfortunatly I need to change the time zone as well. At the moment I'm stuck with EDT.

If I changed the timezone the time would be correct.

Do you know how to do that?

Kind Regards,

Adrian
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
PS: I had to reboot the server for PHP to pick up the new time settings.