Birthdate bugfix

This commit is contained in:
Douglas Barone 2022-11-22 12:20:09 -04:00
parent 3402333599
commit b728a8b504
2 changed files with 8 additions and 2 deletions

View File

@ -12,7 +12,13 @@ function dateAndTime(date) {
}
function shortDate(date) {
return format(new Date(date), 'dd/MM/yyyy', { locale })
const d = new Date(date)
const offSettedDate = new Date(
d.valueOf() + d.getTimezoneOffset() * 60 * 1000
)
return format(offSettedDate, 'dd/MM/yyyy', { locale })
}
function from(date) {

View File

@ -6,7 +6,7 @@
light
@click:outside="$router.push({ name: 'home' })"
>
<v-card>
<v-card v-if="me">
<v-container fluid>
<v-row align="center">
<v-col :cols="6">