Skip to content

Commit

Permalink
Use UTC dates to make the polypill consistent with native inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes committed Nov 3, 2020
1 parent af7c189 commit 0684830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default class Input {
return new Date(parts[fmt.yyyy], parts[fmt.mm] - 1, parts[fmt.dd])
},
set: val => {
this.element.value = dateFormat(val, this.format)
this.element.value = dateFormat(val, this.format, true)
}
},
valueAsNumber: {
Expand Down

0 comments on commit 0684830

Please sign in to comment.