[open-ils-commits] r1002 - conifer/branches/rel_1_6_1/web/opac/skin/default/js (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Sep 20 16:49:13 EDT 2010
Author: dbs
Date: 2010-09-20 16:49:07 -0400 (Mon, 20 Sep 2010)
New Revision: 1002
Modified:
conifer/branches/rel_1_6_1/web/opac/skin/default/js/myopac.js
Log:
More human-friendly due time in checked out items list, including hour/minute due
Addresses #489 "Patrons need to see due time also"
Modified: conifer/branches/rel_1_6_1/web/opac/skin/default/js/myopac.js
===================================================================
--- conifer/branches/rel_1_6_1/web/opac/skin/default/js/myopac.js 2010-09-19 17:29:41 UTC (rev 1001)
+++ conifer/branches/rel_1_6_1/web/opac/skin/default/js/myopac.js 2010-09-20 20:49:07 UTC (rev 1002)
@@ -588,11 +588,11 @@
//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) {
More information about the open-ils-commits
mailing list