the dojo code now behind the util.date iso8601 formatter neither needs nor likes...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 14 Jun 2010 20:20:31 +0000 (20:20 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 14 Jun 2010 20:20:31 +0000 (20:20 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16718 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/circ/util.js
Open-ILS/xul/staff_client/server/patron/holds.js
Open-ILS/xul/staff_client/server/patron/items.js

index a08239c..0ea27fb 100644 (file)
@@ -2225,7 +2225,7 @@ circ.util.checkin_via_barcode = function(session,params,backdate,auto_print,asyn
         if (backdate && (backdate == util.date.formatted_date(new Date(),'%Y-%m-%d')) ) backdate = null;
 
         //var params = { 'barcode' : barcode };
-        if (backdate) params.backdate = util.date.formatted_date(backdate + ' 00:00:00','%{iso8601}');
+        if (backdate) params.backdate = util.date.formatted_date(backdate,'%{iso8601}');
 
         if (typeof params.disable_textbox == 'function') {
             try { params.disable_textbox(); }
index 13a86d8..519e17a 100644 (file)
@@ -788,7 +788,7 @@ patron.holds.prototype = {
                                 if (thaw_date || thaw_date == '') {
                                     circ.util.batch_hold_update(
                                         hold_list, 
-                                        { 'frozen' : 't', 'thaw_date' : thaw_date == '' ? null : util.date.formatted_date(thaw_date + ' 00:00:00','%{iso8601}') }, 
+                                        { 'frozen' : 't', 'thaw_date' : thaw_date == '' ? null : util.date.formatted_date(thaw_date,'%{iso8601}') }, 
                                         { 'progressmeter' : progressmeter, 'oncomplete' :  function() { obj.clear_and_retrieve(true); } }
                                     );
                                 }
@@ -833,7 +833,7 @@ patron.holds.prototype = {
                                 if (expire_time || expire_time == '') {
                                     circ.util.batch_hold_update(
                                         hold_list, 
-                                        { 'expire_time' : expire_time == '' ? null : util.date.formatted_date(expire_time + ' 00:00:00','%{iso8601}') }, 
+                                        { 'expire_time' : expire_time == '' ? null : util.date.formatted_date(expire_time,'%{iso8601}') }, 
                                         { 'progressmeter' : progressmeter, 'oncomplete' :  function() { obj.clear_and_retrieve(true); } }
                                     );
                                 }
index 8444e42..c379bbb 100644 (file)
@@ -533,7 +533,7 @@ patron.items.prototype = {
             }
             //alert('backdate = ' + backdate);
             if (backdate) {
-                backdate = util.date.formatted_date(backdate + ' 00:00:00','%{iso8601}');
+                backdate = util.date.formatted_date(backdate,'%{iso8601}');
                 var barcodes = util.functional.map_list(retrieve_ids,function(o){return o.barcode;});
                 var do_not_move_these = {};
                 for (var i = 0; i < barcodes.length; i++) {