diff --git a/core/frontend/src/utils/index.js b/core/frontend/src/utils/index.js index b9fa0d15a2..d6f9312fd4 100644 --- a/core/frontend/src/utils/index.js +++ b/core/frontend/src/utils/index.js @@ -10,6 +10,9 @@ export function timeSection(date, type, labelFormat = 'yyyy-MM-dd') { if (!date) { return null } + if (typeof date === 'string') { + date = parseInt(date); + } if (!(date instanceof Date)) { date = new Date(date) }