[open-ils-commits] r14982 - trunk/Open-ILS/xul/staff_client/chrome/content/util (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Nov 19 14:02:34 EST 2009
Author: phasefx
Date: 2009-11-19 14:02:30 -0500 (Thu, 19 Nov 2009)
New Revision: 14982
Modified:
trunk/Open-ILS/xul/staff_client/chrome/content/util/date.js
Log:
cut/paste-o, the param name had changed
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/util/date.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/util/date.js 2009-11-19 18:55:59 UTC (rev 14981)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/util/date.js 2009-11-19 19:02:30 UTC (rev 14982)
@@ -50,12 +50,12 @@
dojo.require('dojo.date.stamp');
return dojo.date.stamp.fromISOString( db_date.replace( /^(\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d-\d\d)(\d\d)$/, '$1:$2') );
} else {
- var y = date.substr(0,4);
- var mo = date.substr(5,2);
- var d = date.substr(8,2);
- var h = date.substr(11,2);
- var mi = date.substr(14,2);
- var s = date.substr(17,2);
+ var y = db_date.substr(0,4);
+ var mo = db_date.substr(5,2);
+ var d = db_date.substr(8,2);
+ var h = db_date.substr(11,2);
+ var mi = db_date.substr(14,2);
+ var s = db_date.substr(17,2);
return new Date(y,mo-1,d,h,mi,s);
}
}
More information about the open-ils-commits
mailing list