PHP: System Timezone Setting error

Posted by marknt15 on Stack Overflow See other posts from Stack Overflow or by marknt15
Published on 2010-12-26T08:50:52Z Indexed on 2010/12/26 8:53 UTC
Read the original article Hit count: 232

Filed under:
|
|

Hi,

I'm trying to use PHP in the terminal under MAMP but I got an error related to the system's timezone settings. How can I fix this error?

$/Applications/MAMP/bin/php5/bin/php echo.php

PHP Strict Standards: PHP Startup: 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 'Asia/Manila' for 'PHT/8.0/no DST' instead in Unknown on line 0

Thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about command-line