PHP Time Error

Source: Internet
Author: User
1. PHP record log time and system time is inconsistent, set timezone useless in php.ini, php file added "Date_default_timezone_set (' Asia/shanghai ');" Useless.

2. Try to modify the system (Solaris 10) TimeZone and time, time zone set to "PRC", then set time, reboot, compile php file, log time OK.

3. Set the system time zone: Modify/etc/default/init, set the value of Tz=prc,tz should be to a file in the/usr/share/lib/zoneinfo;

4. Set the system time: Date 011018302012.05, the corresponding time is 2012-01-10 18:30:05.

5. Resources, Solaris time zone settings 1, time zone settings 2, timing settings.

  • 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.