Howdy! I'm hoping someone can help me with this tidbit of php code that is driving me bonkers. Basically the server where this code (and mysql db) resides is in CA and my users are in the Central time zone, thus the time stamps they see aren't correct. How can I change this code to add two-hours? I have played around with it but just can't seem to get it to do what I need it to do. Here's the code snippet and thanks in advance for any and all help!
Code:
// date("O"); = difference to GMT. Example: +0800
$sql = "select * from ".$prefix."_shoutbox_date";
$resultD = $db->sql_query($sql);
$rowD = $db->sql_fetchrow($resultD);
$day = date("$rowD[1]");
$time = date("$rowD[2]");