1
0
Fork 0
mirror of synced 2024-07-07 23:35:49 +12:00

fix date sorting

This commit is contained in:
Martin McKeaveney 2021-08-10 17:41:11 +01:00
parent 9053a84718
commit e2a86f160b

View file

@ -13,9 +13,9 @@
const dispatch = createEventDispatcher() const dispatch = createEventDispatcher()
const onChange = e => { const onChange = e => {
value = e.detail const isoString = e.detail.toISOString()
console.log(value.toISOString()) value = isoString
dispatch("change", e.detail) dispatch("change", isoString)
} }
</script> </script>