fix date sorting

This commit is contained in:
Martin McKeaveney 2021-08-10 17:41:11 +01:00
parent 9053a84718
commit e2a86f160b
1 changed files with 3 additions and 3 deletions

View File

@ -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>