From b3e8c6e7d86a760fddf3e478867e5fd33e9a817c Mon Sep 17 00:00:00 2001
From: phasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Sat, 1 May 2010 05:42:41 +0000
Subject: [PATCH] replace direct use of dojo.date in these xul interfaces with
 util.date wrapper

git-svn-id: svn://svn.open-ils.org/ILS/trunk@16366 dcc99617-32d9-48b4-a31d-7c20da2025e4
---
 Open-ILS/xul/staff_client/chrome/content/util/list.js         | 5 ++---
 Open-ILS/xul/staff_client/server/admin/patrons_due_refunds.js | 3 ++-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Open-ILS/xul/staff_client/chrome/content/util/list.js b/Open-ILS/xul/staff_client/chrome/content/util/list.js
index e7a523299b..8086827973 100644
--- a/Open-ILS/xul/staff_client/chrome/content/util/list.js
+++ b/Open-ILS/xul/staff_client/chrome/content/util/list.js
@@ -1662,10 +1662,9 @@ util.list.prototype = {
                     def.render = function(my) { return my[hint][my_field.name](); }
                 }
                 if (my_field.datatype == 'timestamp') {
-                    dojo.require('dojo.date.locale');
-                    dojo.require('dojo.date.stamp');
+                    JSAN.use('util.date');
                     def.render = function(my) {
-                        return dojo.date.locale.format( dojo.date.stamp.fromISOString(my[hint][my_field.name]()) );
+                        return util.date.formatted_date( my[hint][my_field.name](), '%{localized}' );
                     }
                 }
                 if (my_field.datatype == 'org_unit') {
diff --git a/Open-ILS/xul/staff_client/server/admin/patrons_due_refunds.js b/Open-ILS/xul/staff_client/server/admin/patrons_due_refunds.js
index 10f1033f75..5a0f15f87a 100644
--- a/Open-ILS/xul/staff_client/server/admin/patrons_due_refunds.js
+++ b/Open-ILS/xul/staff_client/server/admin/patrons_due_refunds.js
@@ -92,7 +92,8 @@ function init_list() {
                     },
                     {
                         'id' : 'last_billing_activity', 'label' : 'Last Billing Activity', 'sort_type' : 'date', 'render' : function(my) { 
-                            return dojo.date.locale.format( dojo.date.stamp.fromISOString(my.last_billing_activity) );
+                            JSAN.use('util.date');
+                            return util.date.formatted_date( my.last_billing_activity, '%{localized}' );
                         }
                     }
                 ]),
-- 
2.11.0