From a77d2987eab85cda0a64bad86fa0e92a57ac9b18 Mon Sep 17 00:00:00 2001 From: tattle <66640614+dragomagol@users.noreply.github.com> Date: Wed, 14 Dec 2022 06:58:41 -0800 Subject: [PATCH] Investigate logs contain dates (#71982) ## About The Pull Request Investigate logs contain dates because I didn't notice they didn't have dates. ## Why It's Good For The Game Good for external parsers. Bringing logs closer to a standard (we hope) ## Changelog :cl: Tattle admin: investigate logs have dates, not just times /:cl: Co-authored-by: tattle --- code/__HELPERS/logging/research.dm | 2 +- code/modules/admin/admin_investigate.dm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/__HELPERS/logging/research.dm b/code/__HELPERS/logging/research.dm index 40fd2a9ec72..f352123f9a2 100644 --- a/code/__HELPERS/logging/research.dm +++ b/code/__HELPERS/logging/research.dm @@ -3,4 +3,4 @@ if(!text) return var/html_file = file("[GLOB.log_directory]/[INVESTIGATE_RESEARCH].html") - WRITE_FILE(html_file, "[time_stamp()] [text]
") + WRITE_FILE(html_file, "[time_stamp(format = "YYYY-MM-DD hh:mm:ss")] [text]
") diff --git a/code/modules/admin/admin_investigate.dm b/code/modules/admin/admin_investigate.dm index 5cab0d0301e..94ea182891f 100644 --- a/code/modules/admin/admin_investigate.dm +++ b/code/modules/admin/admin_investigate.dm @@ -8,7 +8,7 @@ var/mob/living/source_mob = src source += " ([source_mob.ckey ? source_mob.ckey : "*no key*"])" - WRITE_FILE(F, "[time_stamp()] [REF(src)] ([x],[y],[z]) || [source] [message]
") + WRITE_FILE(F, "[time_stamp(format = "YYYY-MM-DD hh:mm:ss")] [REF(src)] ([x],[y],[z]) || [source] [message]
") /client/proc/investigate_show() set name = "Investigate"