From f3695fcd85a03f5c8b2ff3e2a5c881cf45ff9f81 Mon Sep 17 00:00:00 2001 From: Kyle Tyo Date: Sun, 16 Feb 2025 15:35:44 -0500 Subject: [PATCH] Update ContentLocalizationManager.cs --- Content.Shared/Localizations/ContentLocalizationManager.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Shared/Localizations/ContentLocalizationManager.cs b/Content.Shared/Localizations/ContentLocalizationManager.cs index d20d8a3134..8275ed0c40 100644 --- a/Content.Shared/Localizations/ContentLocalizationManager.cs +++ b/Content.Shared/Localizations/ContentLocalizationManager.cs @@ -148,7 +148,8 @@ namespace Content.Shared.Localizations public static string FormatPlaytime(TimeSpan time) { var hours = (int)time.TotalHours; - var minutes = (int)Math.Ceiling(time.TotalMinutes); + var rounded = (int)Math.Ceiling(time.TotalMinutes); + var minutes = rounded - hours * 60; return Loc.GetString($"zzzz-fmt-playtime", ("hours", hours), ("minutes", minutes)); }