Admin side

+admin role
try u.last_sign_in_at.strftime('%b %d, %Y %I:%M%p') if u.last_sign_in_at.present?