Bug 9014 - Add time due to slips
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 6 Nov 2012 19:00:06 +0000 (14:00 -0500)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Thu, 21 Mar 2013 15:07:42 +0000 (11:07 -0400)
commitb900f5f056416c6fd1875e4bf95cb0a3c3e58469
tree65f9f8f4a666b8b74b212f70d341fd72d117c431
parentf26135d5b8a1804f3c46c0f51fac67e5f800a6aa
Bug 9014 - Add time due to slips

This patch modifies Koha::DateUtils::output_pref to support the new system preference TimeFormat, which defines the visual format for a time as either the 24 hour format ( default ), or the 12 hour format (HH:MM AM/PM).

The patch also modifies C4::Members::IssueSlip to use output_pref rather than format_date.

Test Plan:
1) Apply patch
2) Run updatedatabase.pl
3) Issue an item to a patron, verify the times are in 24 hour format.
4) Switch TimeFormat to the 12 hour format.
5) Revisit the patron record you issued an item to, times should now be in a 12 hour format.
6) Print a slip for this patron, you should now see the time as well as the date.

Katrin Fischer <Katrin.Fischer.83@web.de>
Passes all tests after fixing the test count in t/DateUtils.t.
Fixed conflicts in syspref.sql and updatedatabase.pl.

Signed-off-by: Cedric Vita <cedric.vita@dracenie.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
As we have another sign-off on this now I gave it a quick
run through and it works as expected.
All tests and QA script pass.
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
C4/Letters.pm
C4/Members.pm
Koha/DateUtils.pm
acqui/lateorders.pl
installer/data/mysql/sysprefs.sql
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/i18n_l10n.pref
t/DateUtils.t