[Koha-bugs] [Bug 13622] Display a datetime without time in a notice
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sun Jul 5 23:14:02 CEST 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13622
Indranil Das Gupta <indradg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #39281|0 |1
is obsolete| |
--- Comment #15 from Indranil Das Gupta <indradg at gmail.com> ---
Created attachment 40794
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=40794&action=edit
Bug 13622: Display a datetime without time in a notice
For some needs, a librarian would like to display a datetime or
timestamp field without the time.
This patch adds filter logic in the notice/letter parsing process.
Test plan:
1/ Defined a notice using a datetime or timestamp DB field
(biblio.timestamp for instance).
2/ Generate the notice
3/ Verify that the letter is generated with the time
4/ Use the "dateonly" filter like:
<<your_table.your_field | dateonly>>
<<biblio.timestamp | dateonly>>
5/ Generate the notice
6/ Confirm the the letter is generated without the time for this field.
Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
Signed-off-by: Indranil Das Gupta (L2C2 Technologies) <indradg at gmail.com>
Updated the count of tests to 64 for t/db_dependent/Letters.t to pass
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list