When you add data to the database today, the displayed time of the inserted data is incorrect.
Linux system time settings, so I checked some relevant information online and sorted it out for the next time.
In Linux, we usually use the "date-s" command to modify the system time.
The command for 2011-7-28 is [root @ test] # date-s 2011/07/28, modifying the Linux system time and
For the local Windows system, run the [root @ test] # date-s command. However
When the Linux system restarts, the system reads the time from CMOS to the system time variable.
In order to maintain the consistency between the system time and the CMOS time
For a period of time, after we execute date-s, if the machine is restarted immediately, the modification time may not be
This is the cause of the problem. To make sure the modification takes effect, run the following command:
[Root @ test] # clock-w, which forces the modified system time to be written into CMOS.
This article is from the "vkey24" blog