mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-18 09:48:12 +00:00
(js) Fix formatting of Date with %e placeholder
This commit is contained in:
1 parent
79037fc9ab
commit
a2f1561e44
1 file changed
+1
-1
@@ -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