Skip to content

Commit d4efd48

Browse files
authored
fix(VDateInput): avoid time values in the field (#21694)
fix for custom date adapters
1 parent 85abd80 commit d4efd48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vuetify/src/composables/dateFormat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export function useDateFormat (props: DateFormatProps, locale: Ref<string>) {
129129
}
130130

131131
function formatDate (value: unknown) {
132-
const parts = adapter.toISO(value).split('-')
132+
const parts = adapter.toISO(value).split('T')[0].split('-')
133133

134134
return currentFormat.value.order.split('')
135135
.map(sign => parts['ymd'.indexOf(sign)])

0 commit comments

Comments
 (0)