I just activated / installed PHP and mySQL on my Mac, and everything seemed to be going fine until I got access to a table that used dates.
On a real server, where I previously developed the site, the exact same page worked fine.
On my local site, I get the following messages for each row of the table:
Warning: strtotime() [function.strtotime]: It is not safe to rely on the system 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 'BST/1.0/DST' instead in /Users/mysite/Sites/testsite/index.php on line 26
Warning: date() [function.date]: It is not safe to rely on the system 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 'BST/1.0/DST' instead in /Users/mysite/Sites/testsite/index.php on line 26
Any ideas how to stop this. I guess I need to change the settings somewhere.
source share