LP#1437109 Web client edit due-date format repair user/berick/lp1437109-edit-due-format-err
authorBill Erickson <berickxx@gmail.com>
Fri, 17 Jul 2015 21:26:53 +0000 (17:26 -0400)
committerBill Erickson <berickxx@gmail.com>
Fri, 17 Jul 2015 21:26:53 +0000 (17:26 -0400)
Pass the Date object to edit due date dialog, instead of the epoch
milliseconds.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/web/js/ui/default/staff/circ/patron/items_out.js

index f8f4dd8..072e393 100644 (file)
@@ -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,