one magento developer

my experiences about magento

Linux change server time zone

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.


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


timezone list

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.

Leave a Reply

Your email address will not be published. Required fields are marked *.

You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>