Has anyone come across this error when using the getdate() function.
error occurred in pathtourl:getdate() [function.getdate]: 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. We selected 'Europe/London' for 'BST/1.0/DST' instead.
The code is straight forward as below. I am only looking to get the current year nothing more nothing less!
Code: Select all
$currentdate = getdate();
$currentyear = $currentdate['year'];Any clues would be most helpful.
Cheers