From 6c0e026d43c900032293b20823f0a8fd27b6a6fd Mon Sep 17 00:00:00 2001 From: ZephyrTFA Date: Thu, 9 May 2024 16:43:06 -0400 Subject: [PATCH] a --- src/DMAPI/tgs/v3210/api.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/DMAPI/tgs/v3210/api.dm b/src/DMAPI/tgs/v3210/api.dm index 6e4e56ac48..125d85b0df 100644 --- a/src/DMAPI/tgs/v3210/api.dm +++ b/src/DMAPI/tgs/v3210/api.dm @@ -228,12 +228,14 @@ /datum/tgs_api/v3210/SecurityLevel() return TGS_SECURITY_TRUSTED +#if DM_VERSION >= 514 /datum/tgs_api/v3210/proc/unix_epoch_to_iso_timestamp(epoch) epoch += world.timezone * 3600 // adjust for timezone epoch -= 946684800 // adjust for unix to byond epoch lapse (30 years) epoch *= 10 // adjust for time2text expecting decisonds // third paramter is timezone, which only works for versions 514+. but we can put a 0 here and itll be the same for old versions return time2text(epoch, "YYYY-MM-DDThh:mm:ss", 0) +#endif #undef REBOOT_MODE_NORMAL #undef REBOOT_MODE_HARD