zeroblitzt Posted July 6, 2007 Share Posted July 6, 2007 function fixtime($oldtime) { $tz = $u['timezone']; if ($tz || isset($tz)) { $tz2 = ($tz * 60 * 60); $newtime = $oldtime + $tz2; return $newtime; } else { return $oldtime; } } I have that function above, and my intent is to wrap that function around anything that comes out of the database of my website (messages, user sign up date, etc.). But I'm wondering if there is an easier way, or if this wont work. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.