From a28cbfa660f2ff982f1cdcee41c09cec772d84af Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sun, 16 Dec 2007 14:54:06 +0100 Subject: BUGFIX: time display used wrong timezones. also optimized things a bit Got rid of a few db-queries for getting the right timezone. The timezone was also set after the timefunction was called and therefore the timezone didn't have any effect. --- stats.php | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'stats.php') diff --git a/stats.php b/stats.php index ba32a92..68a09af 100644 --- a/stats.php +++ b/stats.php @@ -52,17 +52,6 @@ else if( isset($_SESSION["name"]) ) { DB_get_PREF($myid); - $time = DB_get_user_timestamp($myid); - $unixtime = strtotime($time); - - $offset = DB_get_user_timezone($myid); - $zone = return_timezone($offset); - date_default_timezone_set($zone); - - output_status($name); - - echo "
last login: ".date("r",$unixtime)."
"; - DB_update_user_timestamp($myid); display_user_menu(); -- cgit v1.2.3-18-g5258