[Koha-bugs] [Bug 30718] Use flatpickr's altInput option everywhere

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Aug 7 17:10:33 CEST 2022


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

Victor Grousset/tuxayo <victor at tuxayo.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #138644|0                           |1
        is obsolete|                            |

--- Comment #52 from Victor Grousset/tuxayo <victor at tuxayo.net> ---
Created attachment 138748
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=138748&action=edit
Bug 30718: Use flatpickr's altInput

The idea rely on the KohaDates TT plugin for the date formatting. We
should not have any output_pref calls in pl or pm (there are some
exceptions, for ILSDI for instance).

Also flatpickr will deal with the places where dates are inputed. We
will pass the raw SQL value (what we call 'iso' in Koha::DateUtils), and
the controller will receive the same value, no need to additional
conversion.
Note that DBIC has the capability to auto-deflate DateTime objects,
which makes things way easier. We can either pass the value we receive
from the controller, or pass a DT object to our methods.

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


More information about the Koha-bugs mailing list