From 1d0efd1748ea75aef1c4d70e6767db35e1b63945 Mon Sep 17 00:00:00 2001 From: Paldeep Singh Date: Fri, 22 Mar 2024 11:21:10 +1100 Subject: [PATCH] Default date format to YYYY-MM-DD --- packages/mermaid/src/diagrams/gantt/ganttDb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mermaid/src/diagrams/gantt/ganttDb.js b/packages/mermaid/src/diagrams/gantt/ganttDb.js index 705e097580..a9802ff247 100644 --- a/packages/mermaid/src/diagrams/gantt/ganttDb.js +++ b/packages/mermaid/src/diagrams/gantt/ganttDb.js @@ -21,7 +21,7 @@ dayjs.extend(dayjsIsoWeek); dayjs.extend(dayjsCustomParseFormat); dayjs.extend(dayjsAdvancedFormat); -let dateFormat = ''; +let dateFormat = 'YYYY-MM-DD'; let dateRange = ''; let startDateRange = ''; let endDateRange = '';