The code program to send the boss text message time is wrong!

Source: Internet
Author: User

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.