Can you use date() ??
Posted: Thu Jun 20, 2013 3:50 am
Is there anything wrong in using this:
I am getting a vast amount of errors saying:
Code: Select all
$todaydate = date('Y-m-d');Is it as simple as putting this at the top of the template file?[Wed Jun 19 07:16:40 2013] [warn] [client 90.209.131.62] mod_fcgid: stderr: PHP Warning: 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 'BST/1.0/DST' instead in /var/www/vhosts/site.co.uk/httpdocs/includes/categ.inc
Code: Select all
date_default_timezone_set('GMT');