[Koha-bugs] [Bug 33703] Entering dates should be more flexible accepting different entry formats

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Oct 25 10:20:52 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33703

--- Comment #35 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Hmm, I don't know why we opted for flatpickr over the native date type.. though
I do use options within flatpickr extensively in he bookings work and I don't
think the native picker would support all the options we use?

As did some research and it would appear the most well maintained, tried and
tested libraries are:

* InputMask (https://robinherbots.github.io/Inputmask/#/documentation) which
seems to be maintained by one maintainer, and started out in the jQuery days..
you can see it's still got some jQuery style to it today.. but it is very wide
spread and has pretty consistent maintanence.
* iMask.js (https://imask.js.org/guide.html) which is a bit more modern, but
doesn't appear to do datetime out of the box :(.  Seems well maintained by a
group of contributors.
* Maskito (https://maskito.dev/kit/date-time) which is the newest kid to the
block, has datetime handling out of the box and seems to be well maintained and
very open in their development being part of Taiga UI kit.

I think the simplest to switch to feels like Maskito to me.. though iMask also
looks fairly trivial.  Both also have Vue support baked in so would appear to
be a bit future proofed given our current direction of travel.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list