PHP VERSION: 7.0.30

date_timezone.php

<?php
// datetimezone

ini_set('date.timezone''');
$date = new DateTime('now');
echo 
$date->format('Y-m-d H:i:s');

Output


2018-06-23 19:19:35
SOURCE CODE