fix date sorting
This commit is contained in:
parent
9053a84718
commit
e2a86f160b
|
@ -13,9 +13,9 @@
|
|||
|
||||
const dispatch = createEventDispatcher()
|
||||
const onChange = e => {
|
||||
value = e.detail
|
||||
console.log(value.toISOString())
|
||||
dispatch("change", e.detail)
|
||||
const isoString = e.detail.toISOString()
|
||||
value = isoString
|
||||
dispatch("change", isoString)
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in New Issue