From 387b44d4be76231f4f3f47ee79bd2c33d59220c2 Mon Sep 17 00:00:00 2001 From: Leo Date: Thu, 16 Mar 2017 22:15:39 -0300 Subject: [PATCH] Href logs now use time_stamp() so it properly logs the seconds aswell (#25153) * Href logs now use time_stamp() so it properly logs the seconds aswell * Updates time_stamp to show decisseconds * Href logs now display decisseconds --- code/__HELPERS/time.dm | 5 +++-- code/modules/client/client_procs.dm | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/code/__HELPERS/time.dm b/code/__HELPERS/time.dm index e7a3c831bca..a7921a48bbb 100644 --- a/code/__HELPERS/time.dm +++ b/code/__HELPERS/time.dm @@ -2,8 +2,9 @@ /proc/worldtime2text() return gameTimestamp("hh:mm:ss") -/proc/time_stamp(format = "hh:mm:ss") - return time2text(world.timeofday, format) +/proc/time_stamp(format = "hh:mm:ss", show_ds) + var/time_string = time2text(world.timeofday, format) + return show_ds ? "[time_string]:[world.timeofday % 10]" : time_string /proc/gameTimestamp(format = "hh:mm:ss") // Get the game time in text return time2text(world.time - timezoneOffset + 432000 - round_start_time, format) diff --git a/code/modules/client/client_procs.dm b/code/modules/client/client_procs.dm index 0e59e5c924b..06a9bdbe225 100644 --- a/code/modules/client/client_procs.dm +++ b/code/modules/client/client_procs.dm @@ -71,7 +71,7 @@ //Logs all hrefs if(config && config.log_hrefs && href_logfile) - href_logfile << "[time2text(world.timeofday,"hh:mm")] [src] (usr:[usr]) || [hsrc ? "[hsrc] " : ""][href]
" + href_logfile << "[time_stamp(show_ds = TRUE)] [src] (usr:[usr]) || [hsrc ? "[hsrc] " : ""][href]
" // Admin PM if(href_list["priv_msg"])