• I am running wordpress on an Apache server (http://localhost/). I am able to install wordpress but when I do, it tells me not to rely on the system date and time as it is unsafe. I have tried to reset the date and time but the code keeps coming up. Here is the code that keeps coming up in the front end:

    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 ‘Europe/London’ for ‘1.0/DST’ instead in C:\xampp\htdocs\wordpress\wp-includes\functions.php on line 35

    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 ‘Europe/London’ for ‘1.0/DST’ instead in C:\xampp\htdocs\wordpress\wp-includes\functions.php on line 43

    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 ‘Europe/London’ for ‘1.0/DST’ instead in C:\xampp\htdocs\wordpress\wp-includes\functions.php on line 35

    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 ‘Europe/London’ for ‘1.0/DST’ instead in C:\xampp\htdocs\wordpress\wp-includes\functions.php on line 43

    Hello world!

    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 ‘Europe/London’ for ‘1.0/DST’ instead in C:\xampp\htdocs\wordpress\wp-includes\functions.php on line 35

    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 ‘Europe/London’ for ‘1.0/DST’ instead in C:\xampp\htdocs\wordpress\wp-includes\functions.php on line 107

    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 ‘Europe/London’ for ‘1.0/DST’ instead in C:\xampp\htdocs\wordpress\wp-includes\functions.php on line 109

    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 ‘Europe/London’ for ‘1.0/DST’ instead in C:\xampp\htdocs\wordpress\wp-includes\functions.php on line 111

    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 ‘Europe/London’ for ‘1.0/DST’ instead in C:\xampp\htdocs\wordpress\wp-includes\functions.php on line 112
    August 28th, 2009 Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!

    Can Anyone help?

    Thank You
    Brian Thompson

Viewing 4 replies - 1 through 4 (of 4 total)
  • I ran into this same problem running OS X 10.6 with Apache2 and PHP5.3 installed via MacPorts. I’m not sure if it’s an issue with MacPorts 1.8.0 or PHP5.3; I didn’t encounter this issue in PHP5.2.10.

    This post helped:
    http://wordpress.org/support/topic/285337?replies=16

    The quick fix is to insert
    date_default_timezone_set('UTC');
    in
    /wp-includes/functions.php

    The better fix — although this didn’t work for me — would be to change the default timezone in your php.ini file. Example:
    date.timezone = "America/New_York"

    Would love a better solution than hacking core files if someone else figures it out.

    Tried changing the php.ini by adding date.timezone = “Europe/Moscow, but I still get the warnings. Even after unchecking web sharing several times and double checking my php.ini on my Mac Book Pro…

    The wp-includes/functions.php hack as told by rbaker did work, but like he said… a nasty hack. Hopefuly the next WordPress version will run without problems on my Mac Book Pro with Snow Leopard and LAMP

    The php.ini method works, but you need to restart your Mac for it to take effect.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Date function Jargon in wordpress 2.8.4’ is closed to new replies.