Reason
Development suddenly told me that the boss texting time is wrong! It's more than eight hours slow. because of the internal information involved, the diagram will not be sent.
At that time suddenly to, immediately dawu! UTC issue. Oh this simple!
Communication results:
1, and developers to communicate understanding. is the program on that server, exactly what is written to cause this problem!
2, ask what time to send, time error is how much!
Troubleshooting ideas:
1, through the code internal procedures, the timing of the message (can eliminate the problem of MySQL time)
2, eight hours difference two minutes (UTC problem, but two minutes difference what's going on here? )
3, the system is not installed on its own, before the UTC problem occurred, the system time and MySQL time have eight hours error)
Investigation:
Date view server time, and the difference of two minutes on the current Windows machine. But there's not a eight-hour jet lag? Doubts!
Remember that you have previously written a blog that addresses UTC issues. Then open it and look at it.
http://renzhiyuan.blog.51cto.com/10433137/1763829
Step by step: found that there is no solution to this problem? Did the other colleague change it manually?
Try time synchronization
Rpm-qa|grep ntpdate
Yum Install ntpdate-y (if not installed)
/usr/sbin/ntpdate time.nist.gov
Date view time, sure enough time immediately eight hours error!
According to the previously written documents, changed the local system time, synchronized time, everything is normal! and leader report, later in addition small partner Outfit System Note UTC This problem is possible!
Summarize:
Although this is not a technical problem, but not to despise. After all, is to send text messages to the Chairman, often a very small thing can bring very serious problems. All kinds of disadvantages are not envisaged, anyway, do every little thing, is a big thing!
This article comes from "? Only! "Blog, be sure to keep this provenance http://renzhiyuan.blog.51cto.com/10433137/1788325
The code program to send the boss text message time is wrong!