PHP Timezone Strict Standards
Like this blog? Consider exploring one of our sponsored banner ads...
In PHP5 working with Error Reporting on E_STRICT you need to set the default timezone or you will get a Strict Standards Error:
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.
This is a simple fix, just set the Default Time Zone at the top of the page:
date_default_timezone_set('America/Los_Angeles');
About this entry
You’re currently reading “PHP Timezone Strict Standards,” an entry on BRADINO
- Published:
- 10.17.07 / 1am
- Category:
- PHP
- Tags:
No comments
Jump to comment form | comments rss [?]