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.