mirror of
https://github.com/discourse/discourse.git
synced 2026-08-26 21:27:16 -05:00
fix user listing and search on non-US locale
This commit is contained in:
@@ -3,7 +3,7 @@ class Admin::UsersController < Admin::AdminController
|
||||
def index
|
||||
# Sort order
|
||||
if params[:query] == "active"
|
||||
@users = User.order("COALESCE(last_seen_at, '01-01-1970') DESC, username")
|
||||
@users = User.order("COALESCE(last_seen_at, '1970-01-01') DESC, username")
|
||||
else
|
||||
@users = User.order("created_at DESC, username")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user