From d23d8c23c6a7d487f082a74396dd7dc5cd439cab Mon Sep 17 00:00:00 2001 From: phasefx Date: Mon, 14 Jun 2010 20:20:31 +0000 Subject: [PATCH] the dojo code now behind the util.date iso8601 formatter neither needs nor likes us appending timestamps to dates like that 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 | 2 +- Open-ILS/xul/staff_client/server/patron/holds.js | 4 ++-- Open-ILS/xul/staff_client/server/patron/items.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/circ/util.js b/Open-ILS/xul/staff_client/server/circ/util.js index a08239cdff..0ea27fbdce 100644 --- a/Open-ILS/xul/staff_client/server/circ/util.js +++ b/Open-ILS/xul/staff_client/server/circ/util.js @@ -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(); } diff --git a/Open-ILS/xul/staff_client/server/patron/holds.js b/Open-ILS/xul/staff_client/server/patron/holds.js index 13a86d8ec6..519e17abd7 100644 --- a/Open-ILS/xul/staff_client/server/patron/holds.js +++ b/Open-ILS/xul/staff_client/server/patron/holds.js @@ -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); } } ); } diff --git a/Open-ILS/xul/staff_client/server/patron/items.js b/Open-ILS/xul/staff_client/server/patron/items.js index 8444e4230b..c379bbb69e 100644 --- a/Open-ILS/xul/staff_client/server/patron/items.js +++ b/Open-ILS/xul/staff_client/server/patron/items.js @@ -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++) { -- 2.43.2