convert time to utc php code example
Example 1: php date set utc
<?php
date_default_timezone_set('America/Los_Angeles');
?>
Example 2: current utc time in php
date("Y-m-d H:i:s", time() - date("Z"))
<?php
date_default_timezone_set('America/Los_Angeles');
?>
date("Y-m-d H:i:s", time() - date("Z"))