From 7437ca1ab80e3cb48bc8cc5afd2f7a60e554d5e5 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Thu, 4 Feb 2016 09:19:25 -0500 Subject: [PATCH] (js) Fix support for %p in date formatting --- 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 da9355cb7..bb0d83cc8 100644 --- a/UI/WebServerResources/js/Common/utils.js +++ b/UI/WebServerResources/js/Common/utils.js @@ -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