Skip to content

Commit

Permalink
Formated date on /MyResearch/CheckedOut and started using VuFind "ove…
Browse files Browse the repository at this point in the history
…rdue"-status.
  • Loading branch information
jschultze committed Mar 8, 2018
1 parent 0ba354b commit 3571fc6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion module/PAIA/src/PAIA/Controller/MyResearchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,12 @@ public function checkedoutAction()
$renewForm = true;
}
}

if($dueDateTime = new \DateTime($current['duedate'])) {
$current['duedate'] = $dueDateTime->format('d.m.Y');
if ($dueDateTime < new \DateTime('now')) {
$current['dueStatus'] = 'overdue';
}
}
// Build record driver:
$transactions[] = $this->getDriverForILSRecord($current);
}
Expand Down

0 comments on commit 3571fc6

Please sign in to comment.