LP#1635737 Use new OpenSRF interval_to_seconds() context
authorDan Wells <dbw2@calvin.edu>
Fri, 21 Jul 2017 18:28:16 +0000 (14:28 -0400)
committerMike Rylander <mrylander@gmail.com>
Mon, 31 Jul 2017 16:06:42 +0000 (12:06 -0400)
commit04a101312b0a42d34108c8d78997a3960241363a
tree43d3b9bc4cb1e4cbcfd7493cadd60fc4d1de5ea2
parenta7b434988ca95d66fdcb7141d4b8c6a42b60e449
LP#1635737 Use new OpenSRF interval_to_seconds() context

Use the optional context for interval_to_seconds() to account for the
variable length of duration components.  For example, "1 day" may be
shorter or longer than 24 hours during a time change event, "1 month"
may be shorter or longer depending on which month it is currently, etc.

Also, remove some timestamp munging, as that happens within
interval_to_seconds() already.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/NonCat.pm