Bug report
Bug description:
The datetime.strftime("%1") format specifier produces different results on Windows and Linux. This discrepancy may cause unexpected behavior in cross-platform applications.
from datetime import datetime
dt = datetime.now()
s = dt.strftime("%1")
print(s)
Windows: Raises an ValueError.
Linux: Returns "%1".
CPython versions tested on:
3.11
Operating systems tested on:
No response