Have you read the error message? It quite clearly states that it is not safe to rely on the system's timezone settings, and that you are required to use the Date.Timezone
setting or the date_default_timezone_set()
function.
So, do one or the other.
Either a) Modify your php.ini
to have this:
date.timezone=Europe/London
or b) Call this above your call to date()
(or in a globally included script):
date_default_timezone_set('Europe/London');
Obviously, Europe/London
should be replaced with your actual timezone identifier of which a list is available here: http://php.net/manual/en/timezones.php
Just an additional note, if it's not showing on your server it's because either display_errors
is disabled, or your error reporting level is lower than it is in your development machine, which it certainly should be.