Modification method Centos7 time zone Summary

method one:

timedatectl set-timezone Asia/Shanghai

Method Two:

Set the environment variable TZ (with less than this method, but this method is that once helped me a lot, others are not possible to modify the time zone, hereby record it)

export TZ='Asia/Shanghai'

Method three:

ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

Guess you like

Origin www.cnblogs.com/biaopei/p/11969742.html