diff --git a/code/__HELPERS/time.dm b/code/__HELPERS/time.dm index 9c57f2334c8c..94583a7775a5 100644 --- a/code/__HELPERS/time.dm +++ b/code/__HELPERS/time.dm @@ -9,13 +9,15 @@ /proc/gameTimestamp(format = "hh:mm:ss", wtime=null) if(!wtime) wtime = world.time - return time2text(wtime - GLOB.timezoneOffset, format) + return time2text(wtime, format, 0) /proc/station_time(display_only = FALSE, wtime=world.time) - return ((((wtime - SSticker.round_start_time) * SSticker.station_time_rate_multiplier) + SSticker.gametime_offset) % 864000) - (display_only? GLOB.timezoneOffset : 0) + return ((((wtime - SSticker.round_start_time) * SSticker.station_time_rate_multiplier) + SSticker.gametime_offset) % 864000) + (display_only? GLOB.timezoneOffset : 0) /proc/station_time_timestamp(format = "hh:mm:ss", wtime) - return time2text(station_time(TRUE, wtime), format) + if(!wtime) + wtime = world.time + return time2text(station_time(TRUE, wtime), format, 0) /proc/station_time_debug(force_set) if(isnum(force_set))