From 5ecb623e4567fe4b711a0d16b23da762d61a1c8a 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)); }