From: phasefx Date: Thu, 19 Nov 2009 07:08:08 +0000 (+0000) Subject: option for no time, just date X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=934df71ada3827fbe6a1a173db0f1e68f9133d70;p=evergreen%2Fmasslnc.git option for no time, just date git-svn-id: svn://svn.open-ils.org/ILS/trunk@14968 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/util/date.js b/Open-ILS/xul/staff_client/chrome/content/util/date.js index 096ac0eebc..2f67d9dd69 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/date.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/date.js @@ -86,6 +86,7 @@ util.date.formatted_date = function (orig_date,format) { 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 );