Birthdate bugfix
This commit is contained in:
parent
3402333599
commit
b728a8b504
|
@ -12,7 +12,13 @@ function dateAndTime(date) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function shortDate(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) {
|
function from(date) {
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
light
|
light
|
||||||
@click:outside="$router.push({ name: 'home' })"
|
@click:outside="$router.push({ name: 'home' })"
|
||||||
>
|
>
|
||||||
<v-card>
|
<v-card v-if="me">
|
||||||
<v-container fluid>
|
<v-container fluid>
|
||||||
<v-row align="center">
|
<v-row align="center">
|
||||||
<v-col :cols="6">
|
<v-col :cols="6">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user