Sometime we need to change server time zone to our current time zone,so let to do it
At first, we need to find the current time-zone. We can take it by below command.
timedatectl
or we can use this
ls -l /etc/localtime
the result should be something like this.
The next question is how we can find a timezone that we want to set as our timezone. Just use this command. it shows you all available time zone
timedatectl list-timezones
result:
after finding it,now we are ready to set our time zone :
sudo timedatectl set-timezone Asia/Tehran
as you see we needs to be root for change time zone.
If you have any question about change time zone, please send me an email, or you can submit a comment.