I'm finding the following error in the Recent log messages report:
Warning: DateTime::createFromFormat(): 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in Symfony\Component\HttpFoundation\Response->sendHeaders() (line 331 of /var/www/drupal/drupal-8.1.1/vendor/symfony/http-foundation/Response.php).
My site does include any custom module, but as far as I can see, the only date function it calls is time()
. Shouldn't Drupal handle the timezone setting?
Is there any way I can isolate where this function is getting called from?
It's not a major problem, but I'd prefer to minimise unnecessary warnings in my log.