From cd151f45abf36cb6192f3f07849b576c1b0e2e7f Mon Sep 17 00:00:00 2001 From: Tony Date: Mon, 28 Mar 2022 22:25:40 +0800 Subject: [PATCH] fix(utils): parseDate custom format not working --- lib/utils/parse-date.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/utils/parse-date.js b/lib/utils/parse-date.js index 6dada5af5e..e729752c4f 100644 --- a/lib/utils/parse-date.js +++ b/lib/utils/parse-date.js @@ -1,4 +1,5 @@ const dayjs = require('dayjs'); +dayjs.extend(require('dayjs/plugin/customParseFormat')); dayjs.extend(require('dayjs/plugin/duration')); dayjs.extend(require('dayjs/plugin/weekday'));