Koha/tools
Jonathan Druart 21ea89d774 Bug 28015: Fix inventory for timeformat=12h
Inventory explodes with the following stacktrace if timeformat is set to 12h

Invalid value passed, datelastseen=2021-04-09 12:00 AM expected type is date at /usr/share/perl5/Exception/Class/Base.pm line 88
        Exception::Class::Base::throw('Koha::Exceptions::Object::BadValue', 'type', 'date', 'value', '2021-04-09 12:00 AM', 'property', 'datelastseen') called at /kohadevbox/koha/Koha/Object.pm line 196
        Koha::Object::catch {...} ('DBIx::Class::Exception=HASH(0x557a052baeb0)') called at /usr/share/perl5/Try/Tiny.pm line 124
        Try::Tiny::try('CODE(0x557a051931d8)', 'Try::Tiny::Catch=REF(0x557a052bfc30)') called at /kohadevbox/koha/Koha/Object.pm line 206
        Koha::Object::store('Koha::Item=HASH(0x557a0521a048)') called at /kohadevbox/koha/Koha/Item.pm line 202
        Koha::Item::store('Koha::Item=HASH(0x557a0521a048)') called at /kohadevbox/koha/tools/inventory.pl line 220

Test plan:
Set TimeFormat to 12h
Use the inventory
=> Confirm that it's working with this patch applied

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-04-16 12:28:17 +02:00
..
csv-profiles
access_files.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
ajax-inventory.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
automatic_item_modification_by_age.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
background-job-progress.pl Bug 20017: use Modern::Perl in Tools perl scripts 2018-02-05 09:46:45 -03:00
batch_delete_records.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
batch_extend_due_dates.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
batch_record_modification.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
batch_records_ajax.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
batchMod.pl Bug 23830: Adapt callers 2021-02-08 17:09:34 +01:00
cleanborrowers.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
copy-holidays.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
csv-profiles.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
exceptionHolidays.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
export.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
holidays.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
import_borrowers.pl Bug 26059: Create guarantor/guarantee links on patron import 2021-02-12 12:14:50 +01:00
inventory.pl Bug 28015: Fix inventory for timeformat=12h 2021-04-16 12:28:17 +02:00
koha-news.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
letter.pl Bug 14233: Add logging support to notices and slips management 2021-04-09 15:45:12 +02:00
manage-marc-import.pl Bug 23019: Add profiles to stage-import-batch and magnage-import-batch pages 2020-11-11 15:55:49 +01:00
marc_modification_templates.pl Bug 26784: Silence warns about comparing undefined values for MARC modification templates 2020-10-26 00:14:41 +01:00
modborrowers.pl Bug 27413: Restore debarred and debarredcomment to batch patron mod tools 2021-01-19 15:32:01 +01:00
newHolidays.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
overduerules.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
picture-upload.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
problem-reports.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
quotes-upload.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
quotes.pl Bug 27251: Rewrite QOTD with the Koha REST API 2021-01-29 09:03:45 +01:00
scheduler.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
showdiffmarc.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
stage-marc-import.pl Bug 26854: Remove log of STDERR 2020-11-20 08:16:02 +01:00
stockrotation.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
tools-home.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
upload-cover-image.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
upload-file.pl Bug 17501: Rename Upload to Uploader 2017-01-20 14:20:06 +00:00
upload.pl Bug 25476: Add ability to browse file uploads by category 2021-04-09 16:05:48 +02:00
viewlog.pl Bug 14233: Add logging support to notices and slips management 2021-04-09 15:45:12 +02:00