Change time zone for CentOS 7
To have a good log file in your running CentOS server, it is necessary to maintain a good server's time system. Usually you will find the server's time is not quite same as your local time because that the default settings of server would set the timezone to UTC, while your local timezone may be different.
To set the timezone correctly, you can use the following command to change server's timezone:
Firstly, lets backup the current timezone file, in case you do not have a valid time zone configuration
sudo mv /etc/localtime /etc/localtime.bak
Then, let us set the correct time zone
sudo ln -s /usr/share/zoneinfo/Australia/Melbourne /etc/localtime
After above two commands, your server should response the correct date and time now, try use command
date to verify if you have a correct configuration.