fix form previous day date bug

pull/105/head 1.0.8
Alex Turchyn 2 years ago
parent 7f4548e5c7
commit 182f593d86

@ -212,7 +212,7 @@ export default {
}, },
formattedDate () { formattedDate () {
if (this.field.type === 'date' && this.modelValue) { 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 { } else {
return '' return ''
} }

Loading…
Cancel
Save