[libdazzle] dzl_g_date_time_format_for_display: Use the new "%OB" format



commit a35672f9aa4b067ab579b88680e23b2651375d40
Author: Rafal Luzynski <digitalfreak lingonborough com>
Date:   Fri Mar 2 03:07:07 2018 +0100

    dzl_g_date_time_format_for_display: Use the new "%OB" format
    
    The correct way to display a month name standalone is "%OB" now.
    This is since the GLib bug https://bugzilla.gnome.org/show_bug.cgi?id=749206
    has been fixed which follows the glibc bug
    https://sourceware.org/bugzilla/show_bug.cgi?id=10871.
    
    That means that from now libdazzle requires GLib >= 2.55.3.
    
    Closes: #8

 src/util/dzl-date-time.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/util/dzl-date-time.c b/src/util/dzl-date-time.c
index afa8162..fc11c2b 100644
--- a/src/util/dzl-date-time.c
+++ b/src/util/dzl-date-time.c
@@ -62,7 +62,7 @@ dzl_g_date_time_format_for_display (GDateTime *self)
   else if (diff < (60 * 60 * 24 * 7))
     return g_date_time_format (self, "%A");
   else if (diff < (60 * 60 * 24 * 365))
-    return g_date_time_format (self, "%B");
+    return g_date_time_format (self, "%OB");
   else if (diff < (60 * 60 * 24 * 365 * 1.5))
     return g_strdup (_("About a year ago"));
 


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