From d2a5287effcf60a44084568a37c9c9091d336178 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Thu, 31 Aug 2017 18:40:58 +0200 Subject: Use utc time everywhere --- 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 c94752ed..a4f800f8 100644 --- a/main/src/ui/util/helper.vala +++ b/main/src/ui/util/helper.vala @@ -126,7 +126,7 @@ public static bool is_dark_theme(Gtk.Widget widget) { public static bool is_24h_format() { GLib.Settings settings = new GLib.Settings("org.gnome.desktop.interface"); string settings_format = settings.get_string("clock-format"); - string p_format = (new DateTime.now_local()).format("%p"); + string p_format = (new DateTime.now_utc()).format("%p"); return settings_format == "24h" || p_format == " "; } -- cgit v1.2.3-54-g00ecf