Skip to content
  • Kyle M Hall's avatar
    Bug 9014 - Add time due to slips · b900f5f0
    Kyle M Hall authored and Jared Camins-Esakov's avatar Jared Camins-Esakov committed
    
    
    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: default avatarCedric Vita <cedric.vita@dracenie.com>
    Signed-off-by: default avatarKatrin 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: default avatarJared Camins-Esakov <jcamins@cpbibliography.com>
    b900f5f0