From: Bill Erickson Date: Fri, 17 Jul 2015 21:26:53 +0000 (-0400) Subject: LP#1437109 Web client edit due-date format repair X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fberick%2Flp1437109-edit-due-format-err;p=working%2FEvergreen.git LP#1437109 Web client edit due-date format repair Pass the Date object to edit due date dialog, instead of the epoch milliseconds. Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/items_out.js b/Open-ILS/web/js/ui/default/staff/circ/patron/items_out.js index f8f4dd8e40..072e393ff5 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/items_out.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/items_out.js @@ -263,7 +263,7 @@ function($scope, $q, $routeParams, egCore , egUser, patronSvc , // if there is only one circ, default to the due date // of that circ. Otherwise, default to today. var due_date = items.length == 1 ? - Date.parse(items[0].due_date()) : new Date(); + new Date(Date.parse(items[0].due_date())) : new Date(); $scope.args = { num_circs : items.length,