More human-friendly due time in checked out items list, including hour/minute due
authordbs <dbs@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Mon, 20 Sep 2010 20:49:07 +0000 (20:49 +0000)
committerdbs <dbs@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Mon, 20 Sep 2010 20:49:07 +0000 (20:49 +0000)
Addresses #489 "Patrons need to see due time also"

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/conifer/branches/rel_1_6_1@1002 6d9bc8c9-1ec2-4278-b937-99fde70a366f

web/opac/skin/default/js/myopac.js

index 3e4ca8a..66eabaa 100644 (file)
@@ -588,11 +588,11 @@ function _finesFormatNumber(num) {
 
 //function _trimTime(time) { if(!time) return ""; return time.replace(/\ .*/,""); }
 function _trimTime(time) { 
-       if(!time) return ""; 
+    if(!time) return ""; 
     time = time.replace(/(T\d\d:\d\d:\d\d)([+-]\d\d)(\d)/, "$1$2:$3");
     var d = dojo.date.stamp.fromISOString(time);
     if(!d) return ""; /* date parse failed */
-    return d.iso8601Format('YMD');
+    return dojo.date.locale.format(d, {"formatLength": "medium"});
 }
 
 function _trimSeconds(time) {