]> 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, 3 Apr 2019 15:16:26 +0000 (11:16 -0400)
commitfedf81cb709292132a84e79aaf8515b334b4c28b
tree1b99186d67b37e5b31c745bd2aebc29f8ebb22ec
parent3167d2ebf20ea5318d02b62f9692e40f66851c31
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