Skip to content

Commit 8035c8a

Browse files
authored
fix: Fix CustomParseFormat plugin set locale error (#896)
1 parent a9ca8dc commit 8035c8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugin/customParseFormat/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export default (o, C, d) => {
200200
if (isStrict && date !== this.format(format)) {
201201
this.$d = new Date('')
202202
}
203-
if (pl && pl !== true) this.$L = pl
203+
if (pl && pl !== true) this.$L = this.locale(pl).$L
204204
} else {
205205
oldParse.call(this, cfg)
206206
}

0 commit comments

Comments
 (0)