[Koha-bugs] [Bug 34939] When manually entering dates in flatPickr the hour and minute get set to 00:00 not 23:59

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Sep 27 23:37:13 CEST 2023


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

Lucas Gass <lucas at bywatersolutions.com> changed:

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

--- Comment #3 from Lucas Gass <lucas at bywatersolutions.com> ---
Created attachment 156311
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=156311&action=edit
Bug 34939: Set hour:minute to 23:59 when inputing dates unless explicitly set

1. Find some places in the staff interface where data-flatpickr-enable-time is
set to true. Examples: renew.tt or circulation.tt
2. Directly input a date in whatever date format you have specified in
DateFormat but omit the hour/minute. Example: 12/12/2023
3. See that the hour/minute default to 00:00 if your TimeFormat is 24hr and
12:00 AM if your time format is 12hr
4. Apply patch, clear browser cache.
5. Try step again, setting a date like '12/12/2023'. The hour:minute should be
added as 23:59.
6. With TimeFormat set to 24hr try entering a date with the hour:minute like
'12/12/2023 11:22'. The hour:minute should be set to 11:22.
7. With TimeFormat set to 12hr try entering a date with the hour:minute like
'12/12/2023 11:22 AM'. The hour:minute should be set to 11:22 AM.
8. Play with this in as many TimeFormat and DateFormat combonatinons as you
can.

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


More information about the Koha-bugs mailing list