From 7efa8098fafe5ffb9ed5d7cecbd2101cc2e4f4f0 Mon Sep 17 00:00:00 2001 From: Leo Date: Wed, 10 Jan 2018 21:07:23 -0200 Subject: [PATCH] Merge pull request #34242 from Someguynamedpie/patch-1 Precision in timekeeping is important, okay. --- code/__HELPERS/time.dm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/code/__HELPERS/time.dm b/code/__HELPERS/time.dm index 68ab173ecd..08734c3d88 100644 --- a/code/__HELPERS/time.dm +++ b/code/__HELPERS/time.dm @@ -19,11 +19,9 @@ if(month == MM && day == DD) return 1 -//returns timestamp in a sql and ISO 8601 friendly format +//returns timestamp in a sql and a not-quite-compliant ISO 8601 friendly format /proc/SQLtime(timevar) - if(!timevar) - timevar = world.realtime - return time2text(timevar, "YYYY-MM-DD hh:mm:ss") + return time2text(timevar || world.timeofday, "YYYY-MM-DD hh:mm:ss") GLOBAL_VAR_INIT(midnight_rollovers, 0)