(js) Fix support for %p in date formatting

pull/195/merge
Francis Lachapelle 2016-02-04 09:19:25 -05:00
parent 66d4b9ec43
commit 7437ca1ab8
1 changed files with 1 additions and 1 deletions

View File

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