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"])