PHP VERSION: 7.0.24

date_timezone.php

<?php
// datetimezone

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

Output


2017-10-18 06:53:34
SOURCE CODE