From: Kyle Tyo Date: Mon, 17 Feb 2025 04:06:28 +0000 (-0500) Subject: Update ContentLocalizationManager.cs X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=0fbacd7dcbe9bb9c678d4e6611f3291501dac74f;p=space-station-14.git Update ContentLocalizationManager.cs --- diff --git a/Content.Shared/Localizations/ContentLocalizationManager.cs b/Content.Shared/Localizations/ContentLocalizationManager.cs index c2055d0f49..0ff4352ef5 100644 --- a/Content.Shared/Localizations/ContentLocalizationManager.cs +++ b/Content.Shared/Localizations/ContentLocalizationManager.cs @@ -147,10 +147,9 @@ namespace Content.Shared.Localizations /// public static string FormatPlaytime(TimeSpan time) { + time = TimeSpan.FromSeconds(Math.Ceiling(time.TotalSeconds)); var hours = (int)time.TotalHours; var minutes = time.Minutes; - if (hours == 0 && minutes == 0) - minutes = 1; return Loc.GetString($"zzzz-fmt-playtime", ("hours", hours), ("minutes", minutes)); }