Skip to content

Commit

Permalink
fix: Fix CustomParseFormat plugin set locale error (#896)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkun authored May 6, 2020
1 parent a9ca8dc commit 8035c8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin/customParseFormat/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 8035c8a

Please sign in to comment.