summaryrefslogtreecommitdiffstats
path: root/output.php
diff options
context:
space:
mode:
Diffstat (limited to 'output.php')
-rw-r--r--output.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/output.php b/output.php
index 5d84d46..98bfb9d 100644
--- a/output.php
+++ b/output.php
@@ -366,6 +366,7 @@ function output_footer()
function output_status()
{
+ global $defaulttimezone;
if(isset($_SESSION["name"]))
{
$name = $_SESSION["name"];
@@ -379,10 +380,11 @@ function output_status()
/* last logon time */
$myid = DB_get_userid_by_name($name);
$zone = DB_get_user_timezone($myid);
- date_default_timezone_set($zone);
$time = DB_get_user_timestamp($myid);
+ date_default_timezone_set($defaulttimezone);
$unixtime = strtotime($time);
+ date_default_timezone_set($zone);
echo "<div class=\"lastlogin\">last login: ".date("r",$unixtime)."</div>";
};