From a2f1561e44fe162c48fce8af9feebd477e1bcd0b Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Mon, 21 Mar 2016 09:21:19 -0400 Subject: [PATCH] (js) Fix formatting of Date with %e placeholder --- UI/WebServerResources/js/Common/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/WebServerResources/js/Common/utils.js b/UI/WebServerResources/js/Common/utils.js index b76c105af..d69630847 100644 --- a/UI/WebServerResources/js/Common/utils.js +++ b/UI/WebServerResources/js/Common/utils.js @@ -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