mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-29 18:40:42 +00:00
## About The Pull Request This won't actually do anything on live, since those are all set to UTC±0 currently Pins logging and IC uses of time2text to UTC±0 instead of using the system timezone (byond default) Timezones not being set to utc0 caused issues before (and is again) All timezones are now passed explicitly to make it more likely it's cargo culted properly at least Deletes worldtime2text cus it was gameTimestamp default args ## Why It's Good For The Game Server timezone changes probably shouldn't affect logging, round times, file hashes, IC time, when you caught fish, etc ## Changelog 🆑 refactor: Logging and IC timestamps will now always use UTC±0 and not be affected by server system timezone changes fix: Station and round times will not longer be incorrect if the system timezone is not UTC±0 /🆑 --------- Co-authored-by: TiviPlus <572233640+TiviPlus@users.noreply.com>
27 lines
1.1 KiB
Plaintext
27 lines
1.1 KiB
Plaintext
/obj/structure/sign/clock
|
|
name = "wall clock"
|
|
desc = "It's your run-of-the-mill wall clock showing both the local Coalition Standard Time and the galactic Treaty Coordinated Time. Perfect for staring at instead of working."
|
|
icon_state = "clock"
|
|
|
|
MAPPING_DIRECTIONAL_HELPERS(/obj/structure/sign/clock, 32)
|
|
|
|
/obj/structure/sign/clock/examine(mob/user)
|
|
. = ..()
|
|
. += span_info("The current CST (local) time is: [station_time_timestamp()].")
|
|
. += span_info("The current TCT (galactic) time is: [time2text(world.realtime, "hh:mm:ss", 0)].")
|
|
|
|
/obj/structure/sign/calendar
|
|
name = "wall calendar"
|
|
desc = "It's an old-school wall calendar. Sure, it might be obsolete with modern technology, but it's still hard to imagine an office without one."
|
|
icon_state = "calendar"
|
|
|
|
MAPPING_DIRECTIONAL_HELPERS(/obj/structure/sign/calendar, 32)
|
|
|
|
/obj/structure/sign/calendar/examine(mob/user)
|
|
. = ..()
|
|
. += span_info("The current date is: [time2text(world.realtime, "DDD, MMM DD", world.timezone)], [CURRENT_STATION_YEAR].")
|
|
if(length(GLOB.holidays))
|
|
. += span_info("Events:")
|
|
for(var/holidayname in GLOB.holidays)
|
|
. += span_info("[holidayname]")
|