(js) Fix support for %p in date formatting
parent
66d4b9ec43
commit
7437ca1ab8
|
@ -380,7 +380,7 @@ Date.prototype.getHourString = function() {
|
||||||
Date.prototype.format = function(localeProvider, format) {
|
Date.prototype.format = function(localeProvider, format) {
|
||||||
var separators, parts, i, max,
|
var separators, parts, i, max,
|
||||||
date = [],
|
date = [],
|
||||||
validParts = /%[daAmbByYHIM]/g,
|
validParts = /%[daAmbByYHIMp]/g,
|
||||||
val = {
|
val = {
|
||||||
'%d': this.getUTCDate(), // day of month (e.g., 01)
|
'%d': this.getUTCDate(), // day of month (e.g., 01)
|
||||||
'%e': this.getUTCDate(), // day of month, space padded
|
'%e': this.getUTCDate(), // day of month, space padded
|
||||||
|
|
Loading…
Reference in New Issue