Skip links

How to fix the php error It is not safe to rely on the system’s timezone settings

February 27, 2015

Error message” Warning: date() [function.date]: It is not safe to rely on the system’s timezone settings…

This is due to a php version upgrade on the server and can be fixed by putting this line at the top of the page:

<?php date_default_timezone_set(‘Europe/London’);?>

Other timezones can be found here: http://www.php.net/manual/en/timezones.php

Alternatively you can put this line in your php.ini file: ‘date.timezone = “Europe/London”;’

chris-parker
This website uses cookies to improve your web experience.
chris-parker

Send me a message.

Happy to answer any question you may have.

chris@chrisparkerdesign.co.uk

07813 311253

    Your Name (required)

    Your Email (required)

    Subject

    Your Message

    CHRIS PARKER DESIGN

    chris@chrisparkerdesign.co.uk

    07813 311253