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

--- Comment #35 from CJ Lynce <[email protected]> ---
I had thought about incorporating a flag for time-only in KohaDates, but opted
for adding the suggested KohaTimes filter since KohaDate expects, at minimum, a
date component starting with ####-# to work, including when using the
with_hours option.

Doing a time_only option for KohaDates would have essentially branched the
filter's code due to the Library Hours are only stored as HH:MM:SS, without a
date component. Thus, KohaTimes keeps the differing code bases separate, each
with their different expected minimum input. That said, KohaTimes is fairly
simplistic, so folding it into a KohaDates option would be trivial.

Similar rationale for the JS equivalent of KohaDates in
koha-tmpl/intranet-tmpl/prog/en/includes/js-date-format.inc - the existing
related functions all required a date component to be passed, even when
handling time. The added equivalent of KohaTimes handles inputs without a date
component.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to