Skip to content

fix: Ensure year is always 4 digits#570

Open
Darkheir wants to merge 1 commit intooasis-open:masterfrom
Darkheir:fix/year_4_digits
Open

fix: Ensure year is always 4 digits#570
Darkheir wants to merge 1 commit intooasis-open:masterfrom
Darkheir:fix/year_4_digits

Conversation

@Darkheir
Copy link

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

@CLAassistant
Copy link

CLAassistant commented Jul 25, 2023

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants