can u take the format of chat, use that class, take the timezone value (-5, 0, 10 etc etc) and format the time stamp to work because aoen stores the time as 15:53:12 in the db)
i have time values of 15:53:12 and time zones of ppl store in our database as -5, 0, 10 etc etc
how do i use something to convert the time stamp into their time zone and respect daylight savings time?
right now i have 2 values for the palyers, their time zone and if the DST is making them one hour off
$mtime="15:53:12";
$getfirst2= substr($mtime, 0, 2); //chop hour
$timeoffset = "5";
$DST = "1";
$test2 = $getfirst2 + $timeoffset + $DST; //add hour to time value
$chopfirst2 = substr($mtime, 2);
if($test2 > 23){
$test3 = $test2 - 24;
$mtime = "0" . $test3 . $chopfirst2;
}else{
$mtime = $test2 . $chopfirst2;
}
i want to be able to format on the fly the string into their timezone and apply DST if needed
thanks in advance