lib/ui/charting/js_charting.js
function(date, format) {
            var i, replacements,
                locale = locale_name();
            if(format && locale_uses_day_before_month()) {
                replacements = this.DAY_FIRST_FORMATS;
                for(i = 0; i < replacements.length; i++) {
                    format = format.replace(replacements[i][0], replacements[i][1]);
                }
            }
            if(format && locale in this.CUSTOM_LOCALE_FORMATS) {
                replacements = this.CUSTOM_LOCALE_FORMATS[locale];

                for(i = 0; i < replacements.length; i++) {
                    format = format.replace(replacements[i][0], replacements[i][1]);
                }
            }
            return format_date(date, format);
        }
function(date, format) {
            var i, replacements,
                locale = locale_name();
            if(format && locale_uses_day_before_month()) {
                replacements = this.DAY_FIRST_FORMATS;
                for(i = 0; i < replacements.length; i++) {
                    format = format.replace(replacements[i][0], replacements[i][1]);
                }
            }
            if(format && locale in this.CUSTOM_LOCALE_FORMATS) {
                replacements = this.CUSTOM_LOCALE_FORMATS[locale];

                for(i = 0; i < replacements.length; i++) {
                    format = format.replace(replacements[i][0], replacements[i][1]);
                }
            }
            return format_date(date, format);
        }
function ( date , format ) { var i , replacements , locale = locale_name ( ) ; if ( format && locale_uses_day_before_month ( ) ) { replacements = this . DAY_FIRST_FORMATS ; for ( i = 0 ; i < replacements . length ; i ++ ) { format = format . replace ( replacements [ i ] [ 0 ] , replacements [ i ] [ 1 ] ) ; } } if ( format && locale in this . CUSTOM_LOCALE_FORMATS ) { replacements = this . CUSTOM_LOCALE_FORMATS [ locale ] ; for ( i = 0 ; i < replacements . length ; i ++ ) { format = format . replace ( replacements [ i ] [ 0 ] , replacements [ i ] [ 1 ] ) ; } } return format_date ( date , format ) ; }
a special-case hack to handle some i18n bugs, see SPL-42469
a special - case hack to handle some i18n bugs see SPL - 42469