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
This commit is contained in:
Kalev Lember 2013-09-02 00:46:18 +02:00
parent c68f9eca50
commit 16e251ea98
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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)
{