CentOS 7 change timezone.
- March 5th, 2015
- Posted in Documentation
- Write comment
To List all timezones:
# timedatectl list-timezones
To set to the new timezone:
# timedatectl set-timezone newtimezone
Sample output:
# timedatectl list-timezones | grep Angeles
# timedatectl set-timezone America/Los_Angeles
# date
Thu Mar 5 11:56:43 PST 2015
# ls -l /etc/localtime
lrwxrwxrwx. 1 root root 41 Mar 5 11:56 /etc/localtime -> ../usr/share/zoneinfo/America/Los_Angeles
To view your current timezone configuration:
# timedatectl status
No comments yet.