查看时间各种状态:

timedatectl

设置系统时区为上海:

timedatectl set-timezone Asia/Shanghai

原文:https://blog.csdn.net/TomorrowAndTuture/article/details/113113861