From fe3273201b2525f8388f7a390011cb340f688212 Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 21 May 2024 09:50:23 +0800 Subject: [PATCH] Fix 12/24 hour detection --- PowerControl/MenuStack.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerControl/MenuStack.cs b/PowerControl/MenuStack.cs index c8c0639..98c099b 100644 --- a/PowerControl/MenuStack.cs +++ b/PowerControl/MenuStack.cs @@ -43,7 +43,7 @@ namespace PowerControl private static bool Is24hClock { - get => DateTimeFormatInfo.CurrentInfo.ShortTimePattern.Contains("HH"); + get => DateTimeFormatInfo.CurrentInfo.ShortTimePattern.Contains('H'); } } }