Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Czech (CS) uses genitive case when using iso format MMMM YYYY #3063

Open
DannyJJK opened this issue Aug 7, 2024 · 0 comments
Open

Czech (CS) uses genitive case when using iso format MMMM YYYY #3063

DannyJJK opened this issue Aug 7, 2024 · 0 comments

Comments

@DannyJJK
Copy link
Contributor

DannyJJK commented Aug 7, 2024

Hello,

I encountered an issue with the following code:

\Carbon\Carbon::create('2024-01-01')->locale('cs')->isoFormat('MMMM YYYY')

Carbon version: 3.7.0

PHP version: 8.3.10

I expected to get:

leden 2024

But I actually get:

ledna 2024

I tried this with Polish (which has similar noun cases) and it works correctly. It should only be "ledna" when the month day is also provided.

This is correct:

\Carbon\Carbon::create('2024-01-01')->locale('cs')->isoFormat('Do MMMM YYYY')
"1 ledna 2024"
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

No branches or pull requests

1 participant