Skip to content

glib: Format GDateTime ISO8601 years as %C%y

Carlos Garnacho requested to merge wip/carlosg/gdatetime-before-y1000 into main

The current use of %Y does not take into account that %Y will not pad the year with 0's, meanwhile ISO8601 does expect a full YYYY format for all dates. This breaks the formatting with dates prior to the year 1000.

Split this into %C%y so 2-digit, 0-padded century and year are printed separately, this gives the expected YYYY format.

Merge request reports