Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Mirrored on Nova: NovaSector/NovaSector#1453
Original PR: tgstation/tgstation#81993
About The Pull Request
I'm gonna start off by saying I am in EST, which is important to this PR.
Ever run a local server while not living in the UK and realizing that time is just frozen for you? Basically, this is why.
We have
GLOB.timezoneOffset
which basically the time difference between BYOND's default timezone, UTC, and the timezone the server is being hosted in, however when you open a local host you may find that this isn't the case.This should be 144000 for me (results may vary on your location) because of my timezone
514 did mess a little bit with timezones, adding a new arg in
time2text
But it also added a new var,
world.timezone
, which handles basically everything we want for timezone offset stuff. By default, this is UTC, which is perfect for our case.So I just swapped out our non-functional
time2text(0,"hh")
withworld.timezone
, andIncredible! It works!
Time is even ticking again!
What an amazing feat, thanks 514!
Why It's Good For The Game
Closes tgstation/tgstation#81180
Changelog
🆑 JohnFulpWillard
fix: Time on servers hosted outside of the UK should now properly have their timezone offset.
/:cl: