From a029538904730ccc5dbe1df98a9af80471dde1be Mon Sep 17 00:00:00 2001 From: iamkun Date: Wed, 6 May 2020 11:35:43 +0800 Subject: [PATCH] fix: Fix CustomParseFormat plugin set locale error --- src/plugin/customParseFormat/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugin/customParseFormat/index.js b/src/plugin/customParseFormat/index.js index 850c0483c..044f62fd6 100644 --- a/src/plugin/customParseFormat/index.js +++ b/src/plugin/customParseFormat/index.js @@ -200,7 +200,7 @@ export default (o, C, d) => { if (isStrict && date !== this.format(format)) { this.$d = new Date('') } - if (pl && pl !== true) this.$L = pl + if (pl && pl !== true) this.$L = this.locale(pl).$L } else { oldParse.call(this, cfg) }