PHP VERSION: 7.0.26

date_timezone.php

<?php
// datetimezone

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

Output


2017-12-14 04:47:10
SOURCE CODE