Bug 16780 - Specify due date always sets time as AM when using 12 hour time format
authorKyle M Hall <kyle@bywatersolutions.com>
Fri, 24 Jun 2016 10:35:25 +0000 (10:35 +0000)
committerJulian Maurice <julian.maurice@biblibre.com>
Tue, 16 Aug 2016 14:23:05 +0000 (16:23 +0200)
commitf23d07ee3b7a8da5bdfb526757fd0a9e29e165e9
tree8b18a580e6bb1554a9f3d178006887416cc2e3eb
parentd64e722210f0612980cd2b26d947dc4a90dd2474
Bug 16780 - Specify due date always sets time as AM when using 12 hour time format

This regression is occurs because the time format for the checkout
date/time widget is only meant to be given in 24 hour format. The time
due should not be converted to 12 hr time even if the library has 12
hour set as their preferred time format.

Test Plan:
1) Performat a backdated checkout with a date due that has a PM time
2) Note the date/time picker on the confirmition screen shows the time
   in AM/PM
2) Note the time is not stored correctly
3) Apply this patch
4) Repeate step 1
5) Note the confirmation date/time picker now show the time in 24hr
   format
6) Note the time was stored correctly

Signed-off-by: Claire Gravely <c.gravely@arts.ac.uk>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 7c89f78f3bef1cdebb51dcb41fdda7a8dc252b94)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
(cherry picked from commit e0b29cea2ac3f32a8e1322ab680a0bcb513725a8)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
circ/circulation.pl