Fix linting

This commit is contained in:
Wolfgang Huß 2024-02-05 17:48:54 +01:00
parent c07c0692d5
commit 2b1ba71a43

View File

@ -19,9 +19,13 @@ export default {
computed: {
dateTimeString() {
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 {
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),
})
}
},
},