Ecshop sends an email showing the resolution of the Greenwich Mean Time Problem

Source: Internet
Author: User

In the afternoon, I helped my friend debug an ecshop.ProgramIn the message, the GMT time is 8 hours behind that in China, and it is unfriendly. Someone has encountered this problem on the Internet, but they have no choice. I checked the ecshop'sCodeThe gmdate is the Greenwich Mean Time directly generated in the Code. The modification is as follows:
Search for the send_mail function in includs/lib_base.php and find the "send email using SMTP Service" section. Then, search for "$ headers [] = 'date: '" to press the following sentence:
$ Headers [] = 'date: '. gmdate ('d, J m y h: I: s').' + 100 ';
I will not talk about the use of gmdate. I just need to modify it to the following:
$ Headers [] = 'date: '. gmdate ('Y-m-d h: I: s', time () + 3600*8).' + 0800 ';

Solve the problem!

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.