PO activation date display improvement
authorBill Erickson <berick@esilibrary.com>
Fri, 3 Jun 2011 20:35:25 +0000 (16:35 -0400)
committerBill Erickson <berick@esilibrary.com>
Fri, 3 Jun 2011 20:35:25 +0000 (16:35 -0400)
Use the smarter Util.js date parsing code to prevent small time offsets
in PO activation date display.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/web/js/ui/default/acq/po/view_po.js

index ee643eb..8e510f9 100644 (file)
@@ -315,10 +315,7 @@ function renderPo() {
         dojo.byId('acq-po-activated-on').innerHTML = 
             dojo.string.substitute(
                 localeStrings.PO_ACTIVATED_ON, [
-                    dojo.date.locale.format(
-                        dojo.date.stamp.fromISOString(PO.order_date()), 
-                        {formatLength:'short'}
-                    )
+                    openils.Util.timeStamp(PO.order_date(), {formatLength:'short'})
                 ]
             );