Question : set time zone php tehran
Answered by : benyaminrmb
echo date('H:i'),PHP_EOL;
date_default_timezone_set('Iran');
echo date('H:i'),PHP_EOL;
//Or
$date = new DateTime("now", new DateTimeZone("Asia/Tehran"));
echo $date->format("H:i"),PHP_EOL;
Source : https://stackoverflow.com/questions/14197818/how-to-show-time-with-php-code-with-the-right-timezone | Last Update : Sat, 10 Sep 22