diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm
index 16a6386a36a..0e46bbee97a 100644
--- a/code/modules/admin/admin.dm
+++ b/code/modules/admin/admin.dm
@@ -38,7 +38,7 @@
body += " \[Heal\] "
if(M.client)
- body += "
\[Player Age: [M.client.player_age]\]\[Byond Age: [M.client.account_age]\]"
+ body += "
\[First Seen: [M.client.player_join_date]\]\[Byond account registered on: [M.client.account_join_date]\]"
body += "
Show related accounts by: "
body += "\[ CID | "
body += "IP \]"
diff --git a/code/modules/client/client_defines.dm b/code/modules/client/client_defines.dm
index 05db74f859c..a4de2086895 100644
--- a/code/modules/client/client_defines.dm
+++ b/code/modules/client/client_defines.dm
@@ -40,6 +40,7 @@
//things that require the database//
////////////////////////////////////
var/player_age = -1 //Used to determine how old the account is - in days.
+ var/player_join_date = null //Date that this account was first seen in the server
var/related_accounts_ip = "Requires database" //So admins know why it isn't working - Used to determine what other accounts previously logged in from this ip
var/related_accounts_cid = "Requires database" //So admins know why it isn't working - Used to determine what other accounts previously logged in from this computer id
var/account_join_date = null //Date of byond account creation in ISO 8601 format
diff --git a/code/modules/client/client_procs.dm b/code/modules/client/client_procs.dm
index d793c9805ff..32cb9dfaa77 100644
--- a/code/modules/client/client_procs.dm
+++ b/code/modules/client/client_procs.dm
@@ -427,14 +427,15 @@ GLOBAL_LIST(external_rsc_urls)
if(!account_join_date)
account_join_date = "Error"
account_age = -1
- var/datum/DBQuery/query_get_client_age = SSdbcore.NewQuery("SELECT DATEDIFF(Now(),firstseen), accountjoindate, DATEDIFF(Now(),accountjoindate) FROM [format_table_name("player")] WHERE ckey = '[sql_ckey]'")
+ var/datum/DBQuery/query_get_client_age = SSdbcore.NewQuery("SELECT firstseen, DATEDIFF(Now(),firstseen), accountjoindate, DATEDIFF(Now(),accountjoindate) FROM [format_table_name("player")] WHERE ckey = '[sql_ckey]'")
if(!query_get_client_age.Execute())
return
if(query_get_client_age.NextRow())
- player_age = text2num(query_get_client_age.item[1])
+ player_join_date = query_get_client_age.item[1]
+ player_age = text2num(query_get_client_age.item[2])
if(!account_join_date)
- account_join_date = query_get_client_age.item[2]
- account_age = text2num(query_get_client_age.item[3])
+ account_join_date = query_get_client_age.item[3]
+ account_age = text2num(query_get_client_age.item[4])
if(!account_age)
account_join_date = sanitizeSQL(findJoinDate())
if(!account_join_date)