Use 2-digit month and day for JS Date class (#13257)
Single-digit months and days are not compliant with the ECMAScript standard for date strings. See: https://262.ecma-international.org/11.0/#sec-date-time-string-format
This commit is contained in:
parent
d5637105c0
commit
c2b7f0b096
1 changed files with 1 additions and 1 deletions
|
|
@ -223,7 +223,7 @@ function drawMonthCharts({ organizationId, articleId }) {
|
|||
function drawInfinityCharts({ organizationId, articleId }) {
|
||||
resetActive(document.getElementById('infinity-button'));
|
||||
// April 1st is when the DEV analytics feature went into place
|
||||
const beginningOfTime = new Date('2019-4-1');
|
||||
const beginningOfTime = new Date('2019-04-01');
|
||||
callAnalyticsAPI(beginningOfTime, '', { organizationId, articleId });
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue