Fix set_timezone to set_time_zone in NCIP::ILS::Evergreen->renewitem.
authorJason Stephenson <jason@sigio.com>
Sun, 14 Sep 2014 19:57:29 +0000 (15:57 -0400)
committerJason Stephenson <jason@sigio.com>
Sun, 14 Sep 2014 19:57:29 +0000 (15:57 -0400)
Signed-off-by: Jason Stephenson <jason@sigio.com>
lib/NCIP/ILS/Evergreen.pm

index 239baf6..0a2bf37 100644 (file)
@@ -798,7 +798,7 @@ sub renewitem {
         $details = $self->retrieve_copy_details_by_barcode($item_barcode);
         $circ = $details->{circ};
         my $due = DateTime::Format::ISO8601->parse_datetime(cleanse_ISO8601($circ->due_date()));
-        $due->set_timezone('UTC');
+        $due->set_time_zone('UTC');
         $data->{DateDue} = $due->iso8601();
 
         $response->data($data);