From 6aa08a3282855efeedb54ae8add880015ec95408 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Wed, 8 Jul 2020 11:23:37 +0200 Subject: Some locales need more than 2 chars for AM/PM, make the buffer a bit larger --- main/src/ui/util/helper.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/src/ui/util/helper.vala') diff --git a/main/src/ui/util/helper.vala b/main/src/ui/util/helper.vala index d10e1447..8d9fee53 100644 --- a/main/src/ui/util/helper.vala +++ b/main/src/ui/util/helper.vala @@ -249,7 +249,7 @@ public static bool is_dark_theme(Gtk.Widget widget) { private static uint8 is24h = 0; public static bool is_24h_format() { if (is24h == 0) { - string p_format = " "; // Leaving room to be filled by strftime + string p_format = " "; // Leaving room to be filled by strftime Time.local(0).strftime((char[]) p_format.data, "%p"); is24h = p_format.strip() == "" ? 1 : -1; } -- cgit v1.2.3-54-g00ecf