Ubuntu 17.10 UTC

UTC is Universal Time Coordinated, Coordinated Universal Time (Universal Universal Time) GMT is Greenwich Mean Time, Greenwich Mean Time Windows and Mac/Linux view system hardware time differently: Windows treats computer hardware time as local time (local time). ), so the time displayed in the Windows system is the same as the time displayed in the BIOS. Linux/Unix/Mac takes the computer hardware time as UTC, so after the Linux/Unix/Mac system starts, add the time zone number set by the computer to the time (for example, if we are in China, it will add "8" ), so the time displayed on Linux/Unix/Mac systems is always 8 hours faster than the time displayed on Windows systems. Therefore, when you set the real time of the system correctly in Linux/Unix/Mac system, the computer hardware time is actually subtracted 8 hours from this time, so when you switch to Windows system, you will find that the time is slow 8 hours. That's why. OK! Now that you know the reason, you can fix it. Here are two solutions: 1. Change the computer hardware time to the time displayed by the system in Ubuntu, that is, disable Ubuntu's UTC. This has another point to note: before Ubuntu 16.04, the way to turn off UTC was to edit /etc/default/rcS and change UTC=yes to UTC=no, but after Ubuntu 16.04 starts with systemd, the time changes It has become managed by timedatectl, so the change method is
to restart Ubuntu after timedatectl set-local-rtc 1 --adjust-system-clock is executed, there should be no problem.
How to find and set the Linux local time zonehttp:
//www.cnblogs.com/zhi-leaf/p/6282301.htmlTo
display the current time and date of the system, use the timedatectl command on the command line, as follows:

timedatectl status

RTC time is the time of the hardware clock.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324715650&siteId=291194637