mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-22 20:47:28 +01:00
a
This commit is contained in:
@@ -228,12 +228,13 @@
|
||||
/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
|
||||
|
||||
Reference in New Issue
Block a user