Fix 12/24 hour detection

This commit is contained in:
alex 2024-05-21 09:50:23 +08:00
parent 2949858bfc
commit fe3273201b

View file

@ -43,7 +43,7 @@ namespace PowerControl
private static bool Is24hClock
{
get => DateTimeFormatInfo.CurrentInfo.ShortTimePattern.Contains("HH");
get => DateTimeFormatInfo.CurrentInfo.ShortTimePattern.Contains('H');
}
}
}