[open-ils-commits] r14968 - trunk/Open-ILS/xul/staff_client/chrome/content/util (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Nov 19 02:08:12 EST 2009


Author: phasefx
Date: 2009-11-19 02:08:08 -0500 (Thu, 19 Nov 2009)
New Revision: 14968

Modified:
   trunk/Open-ILS/xul/staff_client/chrome/content/util/date.js
Log:
option for no time, just date

Modified: trunk/Open-ILS/xul/staff_client/chrome/content/util/date.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/util/date.js	2009-11-19 06:32:09 UTC (rev 14967)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/util/date.js	2009-11-19 07:08:08 UTC (rev 14968)
@@ -86,6 +86,7 @@
     var s = format;
     if (s == '') { s = '%F %H:%M'; }
     s = s.replace( /%\{localized\}/g, dojo.date.locale.format( _date ) );
+    s = s.replace( /%\{localized_date\}/g, dojo.date.locale.format( _date, { 'selector' : 'date' } ) );
     s = s.replace( /%\{iso8601\}/g, dojo.date.stamp.toISOString( _date ) );
     s = s.replace( /%m/g, mm );
     s = s.replace( /%d/g, dd );



More information about the open-ils-commits mailing list