Ticket #12748: strftime.patch

File strftime.patch, 587 bytes (added by Jiri Suchan, 14 years ago)

array-like access to string changed to .charAt()

  • core.js

     
    174174    };
    175175    var result = '', i = 0;
    176176    while (i < format.length) {
    177         if (format[i] === '%') {
    178             result = result + fields[format[i + 1]];
     177        if (format.charAt(i) === '%') {
     178            result = result + fields[format.charAt(i + 1)];
    179179            ++i;
    180180        }
    181181        else {
    182             result = result + format[i];
     182            result = result + format.charAt(i);
    183183        }
    184184        ++i;
    185185    }
Back to Top