Use the new dynamic duration math (in Postgres) to calculate durations
for non-cataloged circulations.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
or return $e->die_event;
my $duedate = $_dt_parser->parse_datetime( cleanse_ISO8601($circ->circ_time) );
- $duedate = $duedate
- ->add( seconds => interval_to_seconds($otype->circ_duration) )
- ->strftime('%FT%T%z');
+ $duedate = $U->date_plus_interval($duedate, $otype->circ_duration, $e);
+ $duedate = $duedate->strftime('%FT%T%z');
my $offset = $U->storagereq(
'open-ils.storage.actor.org_unit.closed_date.overlap',