Bug 30927: Improve formatting or iCal files for checkout due dates
authorKyle M Hall <kyle@bywatersolutions.com>
Mon, 13 Jun 2022 17:57:13 +0000 (17:57 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 9 Aug 2022 10:39:17 +0000 (07:39 -0300)
commit2395f781fde622e5b9219a2a1b2e2f4d0904450e
treeb3572a0e7beba02954d18b8542e61438a0f2a660
parentf8865ecd43a284fd5d09033e2543bc9bb97c5739
Bug 30927: Improve formatting or iCal files for checkout due dates

We got some feedback from a patron regarding the default notifications
on the iCal export for the patron checkout summary in the OPAC.
The notifications send 1 minute before the event (the due date), which
is midnight.

Test Plan:
0) Make sure your time zone in Koha is set correctly in koha-conf.xml
1) Apply this patch
2) Restart all the things!
3) Make a checkout due at 23:59
4) Make a checkout due at 11:00
5) Download the iCal file from the OPAC
6) Import this file into Calendar
7) Note the first checkout is an all day event
8) Note the second checkout is an "instantaneous" event at the date and
   time the item is due

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
opac/opac-ics.pl