From 9bcaad426ee105cb46caaa00b80bdc3df62d9c74 Mon Sep 17 00:00:00 2001 From: phasefx Date: Thu, 19 Nov 2009 19:02:30 +0000 Subject: [PATCH] cut/paste-o, the param name had changed 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 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/util/date.js b/Open-ILS/xul/staff_client/chrome/content/util/date.js index 9147e1ab02..c4f8ef1c56 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/date.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/date.js @@ -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); } } -- 2.11.0