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
//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) {