Skip to content

Commit

Permalink
[MIRROR] [GBP NO UPDATE] Hub time timezone fix (#612)
Browse files Browse the repository at this point in the history
* [GBP NO UPDATE] Hub time timezone fix (#81053)

## About The Pull Request
While browsing the hub I noticed Psychonaut Station the Turkish TG
always had "Time:" with a value of many hours. I thought they had long
rounds until I joined the server and noticed the actual time was 3 hours
behind

Turns out time2text() has a timezone arg which defaults to server
timezone

I have set it to UTC+0 so it is always consistent since world.time is
UTC
## Changelog
:cl:
fix: The hub time should be accurate for servers with different
timezones
/:cl:

* [GBP NO UPDATE] Hub time timezone fix

---------

Co-authored-by: 13spacemen <46101244+13spacemen@users.noreply.github.com>
  • Loading branch information
2 people authored and FFMirrorBot committed Jan 25, 2024
1 parent c18c4c3 commit 165992c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/game/world.dm
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ GLOBAL_VAR(restart_counter)
else if(SSticker.current_state == GAME_STATE_SETTING_UP)
new_status += "<br>Starting: <b>Now</b>"
else if(SSticker.IsRoundInProgress())
new_status += "<br>Time: <b>[time2text(STATION_TIME_PASSED(), "hh:mm")]</b>"
new_status += "<br>Time: <b>[time2text(STATION_TIME_PASSED(), "hh:mm", 0)]</b>"
if(SSshuttle?.emergency && SSshuttle?.emergency?.mode != (SHUTTLE_IDLE || SHUTTLE_ENDGAME))
new_status += " | Shuttle: <b>[SSshuttle.emergency.getModeStr()] [SSshuttle.emergency.getTimerStr()]</b>"
else if(SSticker.current_state == GAME_STATE_FINISHED)
Expand Down

0 comments on commit 165992c

Please sign in to comment.