diff options
author | fiaxh <git@mx.ax.lt> | 2017-08-31 18:40:58 +0200 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-08-31 18:54:38 +0200 |
commit | d2a5287effcf60a44084568a37c9c9091d336178 (patch) | |
tree | 392d24930cf5c635f114c3e4f30bfce930edf76f /main/src/ui/util/helper.vala | |
parent | a257b163376174e4f5efcbc82c9fdd56463c3191 (diff) | |
download | dino-d2a5287effcf60a44084568a37c9c9091d336178.tar.gz dino-d2a5287effcf60a44084568a37c9c9091d336178.zip |
Use utc time everywhere
Diffstat (limited to 'main/src/ui/util/helper.vala')
-rw-r--r-- | main/src/ui/util/helper.vala | 2 |
1 files changed, 1 insertions, 1 deletions
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 == " "; } |