From: Stéphane Jacob Date: Mon, 9 Apr 2012 15:14:26 +0000 (+0200) Subject: Fixes last connexion on main page (there was a 2 hour time difference). X-Git-Tag: xorg/1.1.5~20 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=1b78b8830d8d8e401e039068b78275f18657632b;p=platal.git Fixes last connexion on main page (there was a 2 hour time difference). Signed-off-by: Stéphane Jacob --- 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)