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
This commit is contained in:
Leo
2017-03-17 14:15:39 +13:00
committed by oranges
parent c322d2e15c
commit 387b44d4be
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -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)
+1 -1
View File
@@ -71,7 +71,7 @@
//Logs all hrefs
if(config && config.log_hrefs && href_logfile)
href_logfile << "<small>[time2text(world.timeofday,"hh:mm")] [src] (usr:[usr])</small> || [hsrc ? "[hsrc] " : ""][href]<br>"
href_logfile << "<small>[time_stamp(show_ds = TRUE)] [src] (usr:[usr])</small> || [hsrc ? "[hsrc] " : ""][href]<br>"
// Admin PM
if(href_list["priv_msg"])