[Koha-bugs] [Bug 21829] New: Date displays as a datetime in notices
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Nov 13 18:51:00 CET 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21829
Bug ID: 21829
Summary: Date displays as a datetime in notices
Change sponsored?: ---
Product: Koha
Version: 17.11
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: P5 - low
Component: Notices
Assignee: koha-bugs at lists.koha-community.org
Reporter: library at sll.texas.gov
QA Contact: testopia at bugs.koha-community.org
The borrowers.dateexpiry field is a date, not a datetime, yet when it is used
in a notice like MEMBERSHIP_EXPIRY, it displays as a datetime by default with
the "12:00 AM" time ("MM/DD/YYYY 12:00 AM").
Bug 13622 added the option to strip times from datetimes by using a "dateonly"
placeholder like so: <<borrowers.dateexpiry | dateonly>>, but if you use this
option on borrowers.dateexpiry, it fails -- probably because the field is not a
datetime?
<<borrowers.dateexpiry>> outputs "MM/DD/YYYY 12:00 AM".
<<borrowers.dateexpiry | dateonly>> outputs "<>" (a left-angle bracket followed
by right-angle bracket).
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list