fix default date

This commit is contained in:
Pete Matsyburka
2024-02-08 23:29:18 +02:00
parent b7323b929f
commit 0f51238f62
+1 -1
View File
@@ -307,7 +307,7 @@ export default {
formattedDate () {
if (this.field.type === 'date' && this.modelValue) {
return this.formatDate(
new Date(this.modelValue),
this.modelValue === '{{date}}' ? new Date() : new Date(this.modelValue),
this.field.preferences?.format || (this.locale.endsWith('-US') ? 'MM/DD/YYYY' : 'DD/MM/YYYY')
)
} else {