Home > database >  Mysql world standard time is faster than Beijing time 8 hours, but the Internet said Beijing time 8
Mysql world standard time is faster than Beijing time 8 hours, but the Internet said Beijing time 8

Time:09-19

1. Connect the mysql first time zone is set to UTC or GMT time standard time effect of
The Connection con=DriverManager. GetConnection (" JDBC: mysql://localhost: 3306/king? ServerTimezone=UTC ", "root", "cc123456");
I will print the current time is:
The 2020-03-23 00:42:31. 0
As the current Beijing time:


2. Now will connect the time zone is set to: east eight area (Beijing time)
The Connection con=DriverManager. GetConnection (" JDBC: mysql://localhost: 3306/king? ServerTimezone=GMT % 2 b8 ", "root", "cc123456");
Now Beijing time for the console output:
The 2020-03-22 16:44:13. 0

3.
By the time China time is not visible is slower than the world time eight hours?

Those who say China's time quickly in the world for eight hours is how understanding?

For years, to reassure!!!!!!
  • Related