Im trying to assign a variable with timezone info that will change the time of info saved in a database.
Here is my code that doesn't work:
<?php
$timeZone = "- 3600";
$date = date('His', time() $timeZone);
echo $date;
?>
But when I do this it works...
<?php
$date = date('His', time() - 3600);
echo $date;
?>
Why won't the variable work in there?