diff options
author | Arun Persaud <arun@nubati.net> | 2007-12-17 00:44:09 +0100 |
---|---|---|
committer | Arun Persaud <arun@nubati.net> | 2007-12-17 00:51:18 +0100 |
commit | e7e64b1ada481710704c16bfb8ee4a7c337dc8f1 (patch) | |
tree | 220fa54af83c921393d006e53f3f026cf4745be5 /functions.php | |
parent | acf6c5f97944366952e6b373a4d59cecd08b658e (diff) | |
download | e-DoKo-e7e64b1ada481710704c16bfb8ee4a7c337dc8f1.tar.gz e-DoKo-e7e64b1ada481710704c16bfb8ee4a7c337dc8f1.tar.bz2 e-DoKo-e7e64b1ada481710704c16bfb8ee4a7c337dc8f1.zip |
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.
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 6 |
1 files changed, 3 insertions, 3 deletions
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 " <div class=\"table".($pos-1)."\">\n"; if(!$debug) |