After arm linux is synchronized through NTP, the time displayed by the Date command on the terminal command line is correct, but the time in the web server is still 8H. Previously, it was the system time zone modified by export TZ=CST-8. Finally, by adding: ./etc/localtime This file is used to set the time zone of the system. Copy the corresponding file in /usr/share/zoneinfo/ to /etc and rename it to localtime to modify the time zone setting, and this modification affects date The order is effective in time. Both date and hwclock will use this file, and the conversion between UTC and local will be performed according to the time zone setting of this file. Mine is:
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime