From: dbs Date: Mon, 20 Sep 2010 20:49:07 +0000 (+0000) Subject: More human-friendly due time in checked out items list, including hour/minute due X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5456e8f0595553312fd8a04588f37f86dfa6b087;p=contrib%2FConifer.git More human-friendly due time in checked out items list, including hour/minute due 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 --- diff --git a/web/opac/skin/default/js/myopac.js b/web/opac/skin/default/js/myopac.js index 3e4ca8a0b0..66eabaad47 100644 --- a/web/opac/skin/default/js/myopac.js +++ b/web/opac/skin/default/js/myopac.js @@ -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) {