From f6fda97b7213f5fae644f8f2a5f1514aea6b9d6d Mon Sep 17 00:00:00 2001 From: Kyle Tyo Date: Sun, 16 Feb 2025 15:40:30 -0500 Subject: [PATCH] I'm gonna do something drastic I swear. --- Content.Shared/Localizations/ContentLocalizationManager.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Content.Shared/Localizations/ContentLocalizationManager.cs b/Content.Shared/Localizations/ContentLocalizationManager.cs index 8275ed0c40..c2055d0f49 100644 --- a/Content.Shared/Localizations/ContentLocalizationManager.cs +++ b/Content.Shared/Localizations/ContentLocalizationManager.cs @@ -148,8 +148,9 @@ namespace Content.Shared.Localizations public static string FormatPlaytime(TimeSpan time) { var hours = (int)time.TotalHours; - var rounded = (int)Math.Ceiling(time.TotalMinutes); - var minutes = rounded - hours * 60; + var minutes = time.Minutes; + if (hours == 0 && minutes == 0) + minutes = 1; return Loc.GetString($"zzzz-fmt-playtime", ("hours", hours), ("minutes", minutes)); }