[open-ils-commits] r15135 - trunk/Open-ILS/xul/staff_client/server/patron (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Dec 10 15:17:49 EST 2009
Author: phasefx
Date: 2009-12-10 15:17:44 -0500 (Thu, 10 Dec 2009)
New Revision: 15135
Modified:
trunk/Open-ILS/xul/staff_client/server/patron/standing_penalties.js
Log:
pass a timestamp with 23:59:59 as the end date for the BETWEEN filter
Modified: trunk/Open-ILS/xul/staff_client/server/patron/standing_penalties.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/standing_penalties.js 2009-12-10 17:50:36 UTC (rev 15134)
+++ trunk/Open-ILS/xul/staff_client/server/patron/standing_penalties.js 2009-12-10 20:17:44 UTC (rev 15135)
@@ -395,6 +395,8 @@
JSAN.use('util.date');
dojo.require('openils.PermaCrud');
var pcrud = new openils.PermaCrud( { authtoken :ses() });
+ var date2 = document.getElementById('date2').dateValue;
+ date2.setHours(23); date2.setMinutes(59); date2.setSeconds(59);
pcrud.search(
'ausp',
{
@@ -402,7 +404,8 @@
stop_date : {
'between' : [
document.getElementById('date1').value,
- document.getElementById('date2').value == util.date.formatted_date(new Date(),'%F') ? 'now' : document.getElementById('date2').value
+ document.getElementById('date2').value == util.date.formatted_date(new Date(),'%F') ?
+ 'now' :util.date.formatted_date( date2 ,'%{iso8601}')
]
}
},
More information about the open-ils-commits
mailing list