Why Is an Incorrect Timestamp Printed in the Log After the Time Zone of the Environment Is Changed?

Symptom

The timestamp printed in the log is inconsistent with the system time.

Possible Cause

The time zone of the system environment is changed after the AI job is started.

Solution

Method 1: Restart the AI job.

Method 2: Change the time zone of the system environment.
# Check the current time zone setting.
timedatectl
# Asia/Shanghai is used as an example to set a new time zone.
sudo timedatectl set-timezone Asia/Shanghai