Changing Time Zone With An Environment Variable

 
<?php
putenv('TZ=PST8PDT');
$california_time_parts = localtime();
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.