Good day
Colleagues, excuse me for such a daring question - but I have not yet met such a phenomenon …
The next code is
<?php
date_default_timezone_set('Asia/Tehran');
echo $date = date('Y-m-d H:i:s');
?>
Back to me result = 2019-01-28 02:35:33
but code is
<?php
echo $date = date('Y-m-d H:i:s');
?>
back to me = 2019-01-27 23:06:11
In settings php.ini i set date.timezone = ‘Asia/Tehran’
in console Ubuntu command date backs to me
Mon Jan 28 02:37:19 +0330 2019
Sorry, but i confused. I can understand how it possible and how can i fix it?
ask for Help please