From 232ec7d27aa85eb1006e9ef72a8e75205e40cd4a Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Sat, 10 Apr 2021 17:07:30 -0700 Subject: [PATCH] Adds seconds and fixes #1136 --- assets/components/RelativeTime.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/assets/components/RelativeTime.vue b/assets/components/RelativeTime.vue index 445fe21c..cd343769 100644 --- a/assets/components/RelativeTime.vue +++ b/assets/components/RelativeTime.vue @@ -31,7 +31,14 @@ export default { computed: { ...mapState(["settings"]), locale() { - return styles[this.settings.hourStyle]; + const locale = styles[this.settings.hourStyle]; + const oldFormatter = locale.formatRelative; + return { + ...locale, + formatRelative(token) { + return oldFormatter(token) + "p"; + }, + }; }, }, filters: {