Answers for "utc time chnage by zone in php"

PHP
1

php get timezone

echo date_default_timezone_get(); //UTC

//Read more at https://www.php.net/manual/en/function.date-default-timezone-get.php
Posted by: Guest on July-15-2020
0

php utc time

date_default_timezone_set('Australia/Brisbane');
echo gmdate('c');
Posted by: Guest on September-27-2021

Browse Popular Code Answers by Language