laravel convert date time server to date time gmt code example Example: php date set utc <?php date_default_timezone_set('America/Los_Angeles'); ?>