Merge branch 'master' into 'master'

week-view: display "12 PM" correctly

See merge request GNOME/gnome-calendar!22
This commit is contained in:
Georges Basile Stavracas Neto
2018-01-10 16:08:08 +00:00
+1 -1
View File
@@ -439,7 +439,7 @@ gcal_week_view_draw_hours (GcalWeekView *self,
{
hours = g_strdup_printf ("%d %s",
i % 12 == 0 ? 12 : i % 12,
i > 12 ? _("PM") : _("AM"));
i >= 12 ? _("PM") : _("AM"));
}
pango_layout_set_text (layout, hours, -1);