My server is located in Virginia but the host has set the time to GMT (which is EST +5) and it's a big annoyance to me. I can offset the time to EST, but how do I offset the date to reflect the current time? As it is now, once it hits 7:00PM EST, the date will be the next day, because it's midnight GMT. Here's what I have so far and the time part works, but the date part does not:
<?php
$hourdiff = "-5";
$timeadjust = ($hourdiff * 60 * 60);
$curtime = date("H:i:s", time() + $timeadjust);
$curdate = date("F j, Y", time()+ $timeadjust);
?>
Thanks. 🙂