PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
[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
Is it as simple as putting this at the top of the template file?
Cool - added it as described to PHP.ini. Will see tomorrow if the (over 1million) lines of errors have reduced by this. As a shed of them were down to times.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
It might be best to set the timezone to UTC, then translate to Europe/London time (which I think is GMT anyway). This will allow your code to work regardless of where the server is located, and will simplify any timezone translation you may need to do for users that aren't in the GMT timezone.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.