Answers for "php 7.4 set timezone"

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
3

php change timezone

date_default_timezone_set('America/Los_Angeles');
Posted by: Guest on March-20-2020

Browse Popular Code Answers by Language