Adjust time math and API return data
authorMike Rylander <mrylander@gmail.com>
Fri, 22 May 2020 16:21:00 +0000 (12:21 -0400)
committerMike Rylander <mrylander@gmail.com>
Fri, 22 May 2020 16:21:00 +0000 (12:21 -0400)
commit9412cea1d800c22d6847395f70d1fc1b599dbff1
tree9d54d564fcd1401697eb42b15cd6cb3b200013ae
parentb34999a3e3015f82eba9cf0c716795a760be72d0
Adjust time math and API return data

Make sure that all DateTime objects that are in the floating timezone
are put into the configured (or default local) timezone, so that date
math is always sane.  Note that DateTime->now returns an object in UTC
so it can be used in math and calls to the database safely -- Postgres
converts for us as needed with any non-floating timezone.

Return the created or updated curbside appointment object when
applicable.

Return -1 on successful delete to avoid possible confusion with
appointment IDs.

Flesh the patron's card so we can display a barcode when returning a
list of appointments for grid display.

Return the copy object and wide display entry object for each hold's
bib record when sending the list of to-be-staged appointment slots,
so staff can cross-check title, author, item barcode, etc.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Curbside.pm