Skip to content

Fix Calendar.strftime negative year as 2-digits formatting - #15658

Merged
josevalim merged 1 commit into
elixir-lang:mainfrom
AlexGx:ag-calendar_strftime-fix
Jul 23, 2026
Merged

Fix Calendar.strftime negative year as 2-digits formatting#15658
josevalim merged 1 commit into
elixir-lang:mainfrom
AlexGx:ag-calendar_strftime-fix

Conversation

@AlexGx

@AlexGx AlexGx commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Fix Calendar.strftime/3 negative year as 2-digits formatting

iex> Calendar.strftime(Date.new!(-1, 1, 1), "%y")
"-1" # expected "-01"

@josevalim
josevalim merged commit e308336 into elixir-lang:main Jul 23, 2026
15 checks passed
@josevalim

Copy link
Copy Markdown
Member

💚 💙 💜 💛 ❤️

@AlexGx
AlexGx deleted the ag-calendar_strftime-fix branch July 24, 2026 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants