Ticket #12748: strftime.patch
File strftime.patch, 587 bytes (added by , 15 years ago) |
---|
-
core.js
174 174 }; 175 175 var result = '', i = 0; 176 176 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)]; 179 179 ++i; 180 180 } 181 181 else { 182 result = result + format [i];182 result = result + format.charAt(i); 183 183 } 184 184 ++i; 185 185 }