From 1b78b8830d8d8e401e039068b78275f18657632b Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Mon, 9 Apr 2012 17:14:26 +0200 Subject: [PATCH] Fixes last connexion on main page (there was a 2 hour time difference). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- classes/user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/user.php b/classes/user.php index a7467b2..b8cca26 100644 --- a/classes/user.php +++ b/classes/user.php @@ -170,7 +170,7 @@ class User extends PlUser FIND_IN_SET(\'watch\', a.flags) AS watch, a.comment, a.weak_password IS NOT NULL AS weak_access, g.g_account_name IS NOT NULL AS googleapps, a.token IS NOT NULL AS token_access, a.token, a.last_version, - UNIX_TIMESTAMP(s.start) AS lastlogin, s.host, UNIX_TIMESTAMP(fp.last_seen) AS banana_last + s.start AS lastlogin, s.host, fp.last_seen AS banana_last ' . $fields . ' FROM accounts AS a INNER JOIN account_types AS at ON (at.type = a.type) -- 2.1.4