(js) Fix formatting of Date with %e placeholder

pull/203/head
Francis Lachapelle 2016-03-21 09:21:19 -04:00
parent 79037fc9ab
commit a2f1561e44
1 changed files with 1 additions and 1 deletions

View File

@ -355,7 +355,7 @@ Date.prototype.getHourString = function() {
Date.prototype.format = function(localeProvider, format) {
var separators, parts, i, max,
date = [],
validParts = /%[daAmbByYHIMp]/g,
validParts = /%[deaAmbByYHIMp]/g,
val = {
'%d': this.getDate(), // day of month (e.g., 01)
'%e': this.getDate(), // day of month, space padded