Home > Featured > WordPress: Warnings with strtotime()
Bookmark and Share

WordPress: Warnings with strtotime()

Posted on September 13, 2013 | Filed in Featured, Wordpress

How to solve the following WordPress warning:

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.

Just add the code below before the first time the above strtotime() function is used in this fileĀ /wp-includes/functions.php

date_default_timezone_set(‘UTC’);

Leave a Reply

Contact Us

Big Apple Design Group
134 West 29th Street
Third Floor
New York, NY 10001

[email protected]

Search Blog