I took a system to perform maintenance, and when migrating to another server, started to give an error in an input with the current date, eg.
<input type='text' value='<?php echo date("d/m/Y"); ?>'>
But you are giving the following error:
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 THE TIMEZONE 'UTC' FOR NOW, BUT PLEASE SET DATE.TIMEZONE TO SELECT YOUR TIMEZONE. IN /XXX/XXXXXX/XXXXXXXXXXX/PAINEL-MASTER.PHP ON LINE 458
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 THE TIMEZONE 'UTC' FOR NOW, BUT PLEASE SET DATE.TIMEZONE TO SELECT YOUR TIMEZONE. IN /XXX/XXXXXX/XXXXXXXXXXX/PAINEL-MASTER.PHP ON LINE 458 - 11/01/2018
Sete at the beginning of PHP:
date_default_timezone_set('America/America/Sao_Paulo');
But from there I do not know how to set the date (Day / Month / Year) within the input, I read about what is suggested in WARNING but I did not solve it.