Commit a35672f9 authored by Rafał Lużyński's avatar Rafał Lużyński Committed by Christian Hergert

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
parent a81d43d9
......@@ -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"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment