]> git.evergreen-ils.org Git - Evergreen.git/commit
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)
committerDan Wells <dbw2@calvin.edu>
Wed, 7 Nov 2018 14:11:38 +0000 (09:11 -0500)
commit8520c3257a71444a9068e1c9de344c2010b2af02
treee895f5f9ccaa8d53d413d0864b04a570fcc8bebf
parent36581e75999f7fda8705e203a4e299988662fa54
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>
Conflicts:
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm

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