[gnome-control-center] datetime: Use new g_date_time %z format modifier



commit 16e251ea98d0fcca9084b79a04e57aef65353988
Author: Kalev Lember <kalevlember gmail com>
Date:   Mon Sep 2 00:46:18 2013 +0200

    datetime: Use new g_date_time %z format modifier
    
    Use new %:::z format string to display timezone offset in a slightly
    nicer way. This is also needed for consistency with the timezone
    notifications from gnome-settings-daemon.
    
    Also bump glib dependency to 2.37.7 for the new modifier.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=707253

 configure.ac                        |    2 +-
 panels/datetime/cc-datetime-panel.c |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index b6c5d53..631a38e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -83,7 +83,7 @@ dnl ==============================================
 dnl Check that we meet the  dependencies
 dnl ==============================================
 
-GLIB_REQUIRED_VERSION=2.35.1
+GLIB_REQUIRED_VERSION=2.37.7
 GTK_REQUIRED_VERSION=3.9.12
 PA_REQUIRED_VERSION=2.0
 CANBERRA_REQUIRED_VERSION=0.13
diff --git a/panels/datetime/cc-datetime-panel.c b/panels/datetime/cc-datetime-panel.c
index faf707b..6041c87 100644
--- a/panels/datetime/cc-datetime-panel.c
+++ b/panels/datetime/cc-datetime-panel.c
@@ -545,8 +545,8 @@ update_timezone (CcDateTimePanel *self)
   g_free (label);
 
   /* Translators: UTC here means the Coordinated Universal Time.
-   * %z will be replaced by the offset from UTC e.g. UTC+0200 */
-  utc_label = g_date_time_format (priv->date, _("UTC%z"));
+   * %:::z will be replaced by the offset from UTC e.g. UTC+02 */
+  utc_label = g_date_time_format (priv->date, _("UTC%:::z"));
 
   if (use_ampm)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]