use luxon instead of dayjs server side too

This commit is contained in:
lesion
2023-03-28 19:02:08 +02:00
parent f5604a03bc
commit fc52107bd9
12 changed files with 102 additions and 80 deletions

View File

@@ -99,7 +99,7 @@ export default ({ app, store }, inject) => {
const opt = {
zone: store.state.settings.instance_timezone,
locale: app.i18n.locale || store.state.settings.instance_locale
}
}
return DateTime.fromSeconds(timestamp, opt).toRelative()
},