fix date sorting
This commit is contained in:
parent
7d49634c6d
commit
962e940aab
|
@ -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