When installing the Linux operating system, one option is UTC, which is checked by default. When the system is installed, the BIOS time is treated as UTC standard Time, and then the system time is adjusted according to the time zone. So it will happen when the time zone is set correctly, but the timing is not correct. So when installing, it's best to cancel that tick.
If it is already installed, you can modify it by modifying the configuration file.
Redhat System Modification/etc/adjtime Third Act local
[Email protected] ~]# Vim/etc/adjtime
-0.098726 1524046105 0.000000
1524046105
LOCAL
~
The format of the Adjtime file is, in ASCII:
Line 1:3 numbers, separated by blanks:1) systematic drift rate in seconds per day, floating
Point decimal; 2) resulting number of seconds since 1969 UTC of most recent adjustment or cali-
bration, decimal integer; 3) zero (for compatibility with clock (8)) as a decimal integer.
Line 2:1 number:resulting number of seconds since 1969 UTC of the most recent calibration. Zero
If there has been no calibration yet or it's known that any previous calibration are moot (for
example, because the Hardware Clock has been found, since that calibration, not to contain a
Valid time). This is a decimal integer.
Line 3: "UTC" or "LOCAL". Tells whether the Hardware Clock is set to coordinated Universal
Time or local time. You can always override this value with options on the Hwclock command
Line.
You can use a Adjtime file that is previously used with the Clock (8) program with Hwclock.
Ubuntu system
The time zone of the Hwclock is set in the/etc/default/rcs file with a parameter of UTC, the default value of true, which means that the UTC time zone is used, and if set to No, it means that the time zone of the osclock is used
UTC raises time zone configuration and Linux system times and BIOS time issues