How to solve the problem

Source: Internet
Author: User
Basic tutorial StrictStandards: date () [function. date]: Itisnotsafetorelyonthesystem 'stimezonesettings. Pleaseusethedate. timezonesetti basic tutorial
Strict Standards: date () [function. date]: It is not safe to rely on the system's timezone settings. please use the date. timezone setting, the TZ environment variable or the date_default_timezone_set () function. in case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. we selected 'utc' for '8. 0/no DST 'Instead in D: \ AppServ \ www \ time. php on line 10
Beijing Time: 2012-04-11 15; 32; 57
Indicates that windows php.int has been changed to Asia/hong_kong. why is there eight time difference?

------ Solution --------------------
PHP code
Defaults (PHP 5> = 5.1.0) date_default_timezone_set-set the default time zone for all date and time functions in a script. description: bool date_default_timezone_set (string $ timezone_identifier) date_default_timezone_set () set the default time zone for all date and time functions. Note: Since PHP 5.1.0 (this version of the DATETIME function has been rewritten), if the time zone does not comply with the rules, every call to the DATETIME function will generate an E_NOTICE-level error message, if you use system settings or TZ environment variables, information at the E_STRICT level will also be generated. The timezone_identifier time zone identifier, for example, UTC or Europe/Lisbon. For the list of valid identifiers, see the supported time zone list. Return value: if the timezone_identifier parameter is invalid, FALSE is returned; otherwise, TRUE is returned.

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.