ok i'm trying to get my script to change the timestamp into EST because the time i am getting now is showing me 4 hours behind.
here is the coding
$con_time=$serv1->fetchMatchingArray("PLAYEDAT");
if (preg_match ("/^[0-9]{10}$/", $con_time[0])) {
for ($i=0; $i<count($con_time); $i++) {
$con_time[$i] = $con_time[$i] + $adjust;
$con_time[$i] = date('h:i:s a', $con_time[$i]);
}
$playtime = $con_time;
}
else {
$playtime = $con_time;
}
if ($timeat == "0") {
$playat = array_shift ($playtime);
} else {
$playtime = $playtime;
}
am i missing something when i am trying to get it to display time. Right now a timestamp of 1128618980 is coming out as 12:16:20 pm and it should be 4:16:20 am.
any help is greatly appreciated.