Friends, my intention is to receive the value of a type = datetime field from MYSQL in a php file
$sql=mysqli_query($con,"select fecha FROM tabla1 WHERE campo1=1");
$rw=mysqli_fetch_array($sql);
$fecha_que_recibo=$rw['fecha'];
The date I want to receive has the following format in the database Year / Month / day / hour / minute / second Example: 2017-08-12 11: 38:05
Here I leave the error that throws me the php 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