use full date to take TZ into account

This commit is contained in:
Martin McKeaveney 2020-09-09 17:02:16 +01:00
parent b605d25a4d
commit 11325f2056
2 changed files with 7 additions and 2 deletions

View File

@ -4,9 +4,15 @@
export let label export let label
export let value export let value
function onChange(event) {
const [selectedDates] = event.detail
value = selectedDates[0]
}
</script> </script>
<div class="bb-margin-m"> <div class="bb-margin-m">
<Label small forAttr={'datepicker-label'}>{label}</Label> <Label small forAttr={'datepicker-label'}>{label}</Label>
<DatePicker placeholder={label} bind:value /> YEET
<DatePicker placeholder={label} on:change={onChange} {value} />
</div> </div>

File diff suppressed because one or more lines are too long