|
$date=date(U); // format date for calculation in seconds
$hourdiff = "19"; //change the server time plus one hour
$timeadjust = ($hourdiff * 60 * 60); //this is how to calc it
$adjdate = date("l, j F Y", $date + $timeadjust); //format display
echo $adjdate;
?>
|
$adjtime = date("g:ia", $date + $timeadjust); //format display
echo $adjtime; //print the adjusted time
?>
|
|
|
||||||||||||||||||||||||||||||||||