Post Date block doesn't display the S
format for displaying the english suffix of a month number in the editor
#39567
Labels
[Block] Post Date
Affects the Post Date Block
[Package] Date
/packages/date
[Status] Duplicate
Used to indicate that a current issue matches an existing one and can be closed
[Type] Bug
An existing feature does not function as intended
Description
Observed while testing #39209. If you enter a custom format with a month number like
jS
as a custom format, theS
is ignored.This is probably an issue with the
dateI18n
function that the post date block uses.I tried ensuring my locale is set to English (UK), just in case that was the cause, but the problem seems to persist.
Step-by-step reproduction instructions
jS
for the month number.Screenshots, screen recording, code snippet
Environment info
trunk
.Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: