REGOLITHMEDIA

Portal Home > Knowledgebase > Wordpress > Receiving "date.timezone setting" or the "date_default_timezone_set()" function errors

Receiving "date.timezone setting" or the "date_default_timezone_set()" function errors

If you started receiving errors all over your WordPress Install that read something like the following:

"Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required*
to use the date.timezone setting 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 'America/New York'
for 'EST/-5.0/DST' instead in /path/to/my/www/wp-includes/functions.php on line ##"

"Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required*
to use the date.timezone setting 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
'America/New York' for 'EST/-5.0/DST' instead in /path/to/my/www/wp-includes/functions.php on line ##"ÂÂÂ

NOTE: The location/timezone 'America/New York'  may vary. Here is a list of timezones from PHP

The good news is the fix is easyer then the reading... Simply place the following line in a php.ini fileÂÂÂ

date.timezone = 'America/New_York'   

NOTE: Again your timezone may varyÂÂÂ

ÂÂÂ

Add to Favourites  Add to Favourites    Print this Article  Print this Article

Was this answer helpful?


Language:
logo