cpython/Misc/NEWS.d/next/Library/2024-07-30-04-27-55.gh-issu...

3 lines
306 B
ReStructuredText

On some platforms such as Linux, year with century was not 0-padded when formatted by :meth:`~.datetime.strftime` with C99-specific specifiers ``'%C'`` or ``'%F'``. The 0-padding behavior is now guaranteed when the format specifiers ``'%C'`` and ``'%F'`` are supported by the C library.
Patch by Ben Hsing