|
|
@ -105,10 +105,9 @@ let localState = $computed({ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (val.isValid()) { |
|
|
|
if (val.isValid()) { |
|
|
|
const formattedValue = dayjs(val?.format(isMysql(column.value.base_id) ? 'YYYY-MM-DD HH:mm:ss' : 'YYYY-MM-DD HH:mm:ssZ')) |
|
|
|
|
|
|
|
// setting localModelValue to cater NOW function in date picker |
|
|
|
// setting localModelValue to cater NOW function in date picker |
|
|
|
localModelValue = formattedValue |
|
|
|
localModelValue = dayjs(val) |
|
|
|
emit('update:modelValue', formattedValue) |
|
|
|
emit('update:modelValue', dayjs(val).format(isMysql(column.value.base_id) ? 'YYYY-MM-DD HH:mm:ss' : 'YYYY-MM-DD HH:mm:ssZ')) |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
}) |
|
|
|
}) |
|
|
|