Minor code refactor to fix thinko and syntax issues.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
) || 'local';
my $due_date = $start_time ?
- DateTime->now(time_zone => $tz) :
- $due_date = DateTime::Format::ISO8601
+ DateTime::Format::ISO8601
->new
->parse_datetime(clean_ISO8601($start_time))
- ->set_time_zone($tz);
+ ->set_time_zone($tz) :
+ DateTime->now(time_zone => $tz);
# add the circ duration
$due_date->add(seconds => OpenILS::Utils::DateTime->interval_to_seconds($duration, $due_date));