mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-22 14:52:44 +00:00
(js) Fix support for %p in date formatting
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user