PHP VERSION: 7.2.15

date_timezone.php

<?php
// datetimezone

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

Output


2019-02-20 05:29:14
SOURCE CODE