From 95e04f72fb4982cbd2276897db056549592d6432 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Lahmann?= <lahmann@ub.uni-leipzig.de>
Date: Wed, 8 Jul 2015 13:22:48 +0200
Subject: [PATCH] * updated finc/DAIA driver with latest updates from
 finc/paia-driver->lahmann/paia-driver

---
 module/finc/src/finc/ILS/Driver/DAIA.php | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/module/finc/src/finc/ILS/Driver/DAIA.php b/module/finc/src/finc/ILS/Driver/DAIA.php
index 20032518fcd..afd77fb01f4 100644
--- a/module/finc/src/finc/ILS/Driver/DAIA.php
+++ b/module/finc/src/finc/ILS/Driver/DAIA.php
@@ -720,8 +720,13 @@ class DAIA extends \VuFind\ILS\Driver\AbstractBase implements
                 }
                 // attribute expected is mandatory for unavailable element
                 if (isset($unavailable["expected"])) {
-                    $duedate = $this->dateConverter
-                        ->convertToDisplayDate("Y-m-d", $unavailable['expected']);
+                    try {
+                        $duedate = $this->dateConverter
+                            ->convertToDisplayDate("Y-m-d", $unavailable['expected']);
+                    } catch (\Exception $e) {
+                        $this->debug("Date conversion failed: " . $e->getMessage());
+                        $duedate = null;
+                    }
                 }
 
                 // attribute queue can be set
-- 
GitLab