From 76bb959a80a7e23013c053f6c78997a92153e69e Mon Sep 17 00:00:00 2001 From: lesion Date: Thu, 12 Jan 2023 14:19:49 +0100 Subject: [PATCH] minor on filters --- plugins/filters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/filters.js b/plugins/filters.js index 165eab6d..24b71533 100644 --- a/plugins/filters.js +++ b/plugins/filters.js @@ -58,7 +58,7 @@ export default ({ app, store }) => { return '' }) - Vue.filter('from', timestamp => dayjs.unix(timestamp).tz().fromNow()) + Vue.filter('from', timestamp => dayjs.unix(timestamp).tz().locale(app.i18n.locale || store.state.settings.instance_locale).fromNow()) Vue.filter('recurrentDetail', event => { const parent = event.parent