cut/paste-o, the param name had changed
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 19 Nov 2009 19:02:30 +0000 (19:02 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 19 Nov 2009 19:02:30 +0000 (19:02 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@14982 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/util/date.js

index 9147e1a..c4f8ef1 100644 (file)
@@ -50,12 +50,12 @@ util.date.db_date2Date = function (db_date) {
         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); 
     }
 }