From 47b5b1d1f465735f02a0c5a3076cfb5859b05a8e Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 20 Nov 2009 17:48:19 +0000 Subject: [PATCH] take advantage of new virtual duedate field on noncat circs in opac display git-svn-id: svn://svn.open-ils.org/ILS/trunk@14990 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/skin/default/js/myopac.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Open-ILS/web/opac/skin/default/js/myopac.js b/Open-ILS/web/opac/skin/default/js/myopac.js index 65d57b2f8f..7f494424f1 100644 --- a/Open-ILS/web/opac/skin/default/js/myopac.js +++ b/Open-ILS/web/opac/skin/default/js/myopac.js @@ -1389,13 +1389,13 @@ function myOPACDrawNonCatCirc(r) { appendClear($n(row, 'circ_lib'), text(findOrgUnit(circ.circ_lib()).name())); appendClear($n(row, 'item_type'), text(type.name())); - var duration = interval_to_seconds(type.circ_duration()); - duration = parseInt(duration + '000'); - - var dtf = circ.circ_time(); - var start = dojo.date.stamp.fromISOString(circ.circ_time()); - var due = new Date( start.getTime() + duration ); - appendClear($n(row, 'circ_time'), text(due.iso8601Format('YMDHM', null, true, true))); + appendClear( + $n(row, 'circ_time'), + text(dojo.date.locale.format( + dojo.date.stamp.fromISOString(circ.duedate()), + {format : 'short'} + )) + ); } -- 2.43.2