-
Notifications
You must be signed in to change notification settings - Fork 1
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
Date range locale #3
Comments
Interesting – this never occured to us so far. Two questions:
Thanks! |
Thanks for looking into this. Running locally on MAMP Tried PHP 8.2 and 8.3 I have a page with two date fields, like so:
Hope I'm not missing something obvious. |
Oh, I think I understand the problem now. And yes, you are right, the For now, adding the following to your return [
// … other setting here …
'hananils.date-methods' => [
'code' => 'en'
]
]; |
Thanks again. For anyone trying the solution above, had to add the full list of available options to do the trick. return [
'hananils.date-methods' => [
'code' => 'en',
'rangeseparator' => '–',
'datetimeseparator' => ', ',
'datetype' => IntlDateFormatter::LONG,
'timetype' => IntlDateFormatter::SHORT
]
]; |
Thanks for developing this useful Kirby plugin. It looks like
toDateRange()
anddateRange()
are not picking up the locale set in the config and return the string in German in any case. All the other methods helpers seem to work fine. Running on Kirby 4.The text was updated successfully, but these errors were encountered: