RFC No Code Attached Yet
avatar brianteeman
brianteeman
12 Nov 2025

Yes I know I wrote joomla 7 but this would be a big change and I think that would be the first version we could apply it to.

We currently use javascript as a datepicker. It is very difficult to maintain, is not accessible and is missing functionality that people want in a modern app eg start/end limits and we have lots of open bugs https://github.com/joomla/joomla-cms/issues?q=is%3Aissue%20state%3Aopen%20calendar

Historically the reason for using our own datepicker is so that it can support non-gregorian calendars and historically javascript was the only way to create a datepicker.

Today (nov 2025) there are even fewer countries that use a non-gregorian calendar for civil dates.[1]

Today there is no reason to use a javascript datepicker at all for gregorian calendars. We can use the browser native datetime functionality. It is fast, maintenance free, (more) accessible and offers the missing functionality users are requesting

More information and examples at https://pikaday.dbushell.com/

[1] Non-gregorian calendar
Iran, Afghanistan, Ethiopia, Thailand (year counting).

avatar brianteeman brianteeman - open - 12 Nov 2025
avatar joomla-cms-bot joomla-cms-bot - change - 12 Nov 2025
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 12 Nov 2025
avatar brianteeman brianteeman - change - 12 Nov 2025
Title
[7.0] RFC native date picker
[7.0] RFC native date picker [a11y] [i8n]
avatar brianteeman brianteeman - edited - 12 Nov 2025
avatar Fedik
Fedik - comment - 12 Nov 2025

It should be easy.
Can just replace calendar to datetime field in all XMLs, or extend CalendarField from DatetimeField field class.

However, 2 questions opened:

  • We need to agree to drop support for non-gregorian calendars. And (in theory) we can provide API for translators to load their JavaScript to alter datetime input to load non-gregorian calendar.
  • The translations is impossible. Joomla provides multi-language interface, however the translations for the native date input will be from the browser. And for example when you try to use Joomla on PC of your friend from France and login to Joomla selecting English interface the Date input will be French. For me it is not a problem, but this can make unhappy some peoples.
avatar Fedik Fedik - change - 12 Nov 2025
Labels Added: RFC
avatar Fedik Fedik - labeled - 12 Nov 2025
avatar joomla-cms-bot joomla-cms-bot - change - 12 Nov 2025
Labels Removed: RFC
avatar joomla-cms-bot joomla-cms-bot - unlabeled - 12 Nov 2025
avatar Fedik Fedik - change - 12 Nov 2025
Title
[7.0] RFC native date picker [a11y] [i8n]
[7.0][RFC] native date picker [a11y] [i8n]
avatar Fedik Fedik - edited - 12 Nov 2025
avatar joomla-cms-bot joomla-cms-bot - change - 12 Nov 2025
Labels Added: RFC
avatar joomla-cms-bot joomla-cms-bot - labeled - 12 Nov 2025
avatar brianteeman
brianteeman - comment - 12 Nov 2025

I actually see it as a bonus that the language of the calendar will always be in my language - what I am not sure of yet is if the ui supports the correct start of the week for that local.

avatar Fedik
Fedik - comment - 12 Nov 2025

what I am not sure of yet is if the ui supports the correct start of the week for that local.

Should work. And depend from User OS configuration.

Add a Comment

Login with GitHub to post a comment