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. Link to comment https://forums.phpfreaks.com/topic/58645-timezone-function-is-this-a-good-way-around-timezones/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.