Fix lobby countdown not showing hours (#33685)

This commit is contained in:
SpaceManiac
2024-12-02 13:29:44 -08:00
committed by GitHub
parent cc804bf316
commit b800d98260

View File

@@ -136,6 +136,10 @@ namespace Content.Client.Lobby
{ {
text = Loc.GetString(seconds < -5 ? "lobby-state-right-now-question" : "lobby-state-right-now-confirmation"); text = Loc.GetString(seconds < -5 ? "lobby-state-right-now-question" : "lobby-state-right-now-confirmation");
} }
else if (difference.TotalHours >= 1)
{
text = $"{Math.Floor(difference.TotalHours)}:{difference.Minutes:D2}:{difference.Seconds:D2}";
}
else else
{ {
text = $"{difference.Minutes}:{difference.Seconds:D2}"; text = $"{difference.Minutes}:{difference.Seconds:D2}";