fix form previous day date bug

This commit is contained in:
Alex Turchyn
2023-08-01 00:26:37 +03:00
parent 7f4548e5c7
commit 182f593d86
+1 -1
View File
@@ -212,7 +212,7 @@ export default {
},
formattedDate () {
if (this.field.type === 'date' && this.modelValue) {
return new Intl.DateTimeFormat([], { year: 'numeric', month: 'long', day: 'numeric' }).format(new Date(this.modelValue))
return new Intl.DateTimeFormat([], { year: 'numeric', month: 'long', day: 'numeric', timeZone: 'UTC' }).format(new Date(this.modelValue))
} else {
return ''
}