replace direct use of dojo.date in these xul interfaces with util.date wrapper
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 1 May 2010 05:42:41 +0000 (05:42 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 1 May 2010 05:42:41 +0000 (05:42 +0000)
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
Open-ILS/xul/staff_client/server/admin/patrons_due_refunds.js

index e7a5232..8086827 100644 (file)
@@ -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') {
index 10f1033..5a0f15f 100644 (file)
@@ -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}' );
                         }
                     }
                 ]),