From 0df8ff53f4c71ffc4b0fdf72a520adfe08fed513 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 12 Apr 2018 20:35:22 +0200 Subject: [dozmod] Properly sort "last login" column in user list --- modules-available/dozmod/pages/users.inc.php | 4 ++-- modules-available/dozmod/templates/userlist.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules-available/dozmod/pages/users.inc.php b/modules-available/dozmod/pages/users.inc.php index 23457ca6..a81bcb8b 100644 --- a/modules-available/dozmod/pages/users.inc.php +++ b/modules-available/dozmod/pages/users.inc.php @@ -46,7 +46,7 @@ class SubPage $row['canlogin'] = self::checked($row['canlogin']); $row['issuperuser'] = self::checked($row['issuperuser']); $row['emailnotifications'] = self::checked($row['emailnotifications']); - $row['lastlogin'] = date('d.m.Y', $row['lastlogin']); + $row['lastlogin_s'] = date('d.m.Y', $row['lastlogin']); $rows[] = $row; } Render::addTemplate('userlist', array( @@ -122,4 +122,4 @@ class SubPage die($val); } -} \ No newline at end of file +} diff --git a/modules-available/dozmod/templates/userlist.html b/modules-available/dozmod/templates/userlist.html index 3b919099..6b19907d 100644 --- a/modules-available/dozmod/templates/userlist.html +++ b/modules-available/dozmod/templates/userlist.html @@ -28,7 +28,7 @@ {{orgname}} - {{lastlogin}} + {{lastlogin_s}} {{email}}
-- cgit v1.2.3-55-g7522