Open Darkheir opened 11 months ago
Because of this issue in CPython on some platform the dates having a year smaller than 1000 will be on less than 4 digits.
format_datetime(datetime(200, 1, 1)) # 200-01-01T00:00:00Z
This PR make sure that the year is always formatted with 4 digits:
format_datetime(datetime(200, 1, 1)) # 0200-01-01T00:00:00Z
All committers have signed the CLA.
Because of this issue in CPython on some platform the dates having a year smaller than 1000 will be on less than 4 digits.
This PR make sure that the year is always formatted with 4 digits: