From e7e64b1ada481710704c16bfb8ee4a7c337dc8f1 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Mon, 17 Dec 2007 00:44:09 +0100 Subject: BUGFIX: local time should now work correctly had to reset the timezone to the local time. added a config parameter to store the local timezone. --- functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index c835f89..b1ed09f 100644 --- a/functions.php +++ b/functions.php @@ -640,7 +640,7 @@ function can_call($what,$hash) function display_table () { - global $gameid, $GT, $debug,$host; + global $gameid, $GT, $debug,$host,$defaulttimezone; $result = mysql_query("SELECT User.fullname as name,". " Hand.position as position, ". @@ -668,10 +668,10 @@ function display_table () $call = $r[5]; $hash = $r[7]; $timezone = $r[8]; + date_default_timezone_set($defaulttimezone); + $lastlogin = strtotime($r[6]); date_default_timezone_set($timezone); $timenow = strtotime(date("Y-m-d H:i:s")); - $lastlogin = strtotime($r[6]); - echo "
\n"; if(!$debug) -- cgit v1.2.3-18-g5258