Skip to content

Commit

Permalink
fix form previous day date bug
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexBTurchyn committed Jul 31, 2023
1 parent 7f4548e commit 182f593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/submission_form/area.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 ''
}
Expand Down

0 comments on commit 182f593

Please sign in to comment.