mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Fix linting
This commit is contained in:
parent
c07c0692d5
commit
2b1ba71a43
@ -19,9 +19,13 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
dateTimeString() {
|
dateTimeString() {
|
||||||
if (dateTimeConstants.RELATIVE_DATETIME) {
|
if (dateTimeConstants.RELATIVE_DATETIME) {
|
||||||
return formatRelative(new Date(this.dateTime), new Date(), { locale: getDateFnsLocale(this) })
|
return formatRelative(new Date(this.dateTime), new Date(), {
|
||||||
|
locale: getDateFnsLocale(this),
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
return format(new Date(this.dateTime), dateTimeConstants.ABSOLUT_DATETIME_FORMAT, { locale: getDateFnsLocale(this) })
|
return format(new Date(this.dateTime), dateTimeConstants.ABSOLUT_DATETIME_FORMAT, {
|
||||||
|
locale: getDateFnsLocale(this),
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user