Change timezone in CentOS
cp /usr/share/zoneinfo/EST5EDT /etc/localtime
OR change ZONE in /etc/sysconfig/clock
eg:-
# cat /etc/sysconfig/clock
# The time zone of the system is defined by the contents of /etc/localtime.
# This file is only for evaluation by system-config-date, do not rely on its
# contents elsewhere.
ZONE="America/New York"
cp /usr/share/zoneinfo/EST5EDT /etc/localtime
OR change ZONE in /etc/sysconfig/clock
eg:-
# cat /etc/sysconfig/clock
# The time zone of the system is defined by the contents of /etc/localtime.
# This file is only for evaluation by system-config-date, do not rely on its
# contents elsewhere.
ZONE="America/New York"
No comments:
Post a Comment