mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-20 05:45:57 +00:00
(js) Fix formatting of Date with %e placeholder
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user