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') {
},
{
'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}' );
}
}
]),