Php does not read the time table in excel

Source: Internet
Author: User
In excel, It is 2015-9-11:45:00, but after php is read, it becomes 2015-9-10:45:00. Note: Thanks for your help, Spreadsheet_Excel_Reader is used. The problem has been solved, not the php date problem. Just set the time column format in excel.

In excel, It is 13:45:00, but after php reads it, it becomes 01:45:00. Note: Spreadsheet_Excel_Reader is used. Thank you.

Thank you for your help.

The problem has been solved, not the php date problem,

Set the time column format in excel.

Reply content:

In excel, It is 13:45:00, but after php reads it, it becomes 01:45:00. Note: Spreadsheet_Excel_Reader is used. Thank you.

Thank you for your help.

The problem has been solved, not the php date problem,

Set the time column format in excel.

This problem is often caused by Time Zone settings. Note the following.
Date_default_timezone_get ();
Date_default_timezone_set ('prc ');

The difference is exactly 12 hours. What is the difference between the 24-hour system and the 12-hour system?

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.