logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/
commit: 898881bac1676a7dcee54b1fdcbb32bbf47f2b1c
parent cec2ae2fbda912496457d0cba9cb6141ee83ac76
Author: Matrix-Sasuke <matrixsasuke@trash-mail.com>
Date:   Wed, 13 Nov 2024 09:19:17 +0000

Absolute time format

Diffstat:

Achangelog.d/weird-absolute-time-format.fix2++
Msrc/components/timeago/timeago.vue2+-
Msrc/modules/config.js2+-
3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/changelog.d/weird-absolute-time-format.fix b/changelog.d/weird-absolute-time-format.fix @@ -0,0 +1 @@ +Show only month and day instead of weird "day, hour" format. While at it, fixed typo "defualt" in a comment. +\ No newline at end of file diff --git a/src/components/timeago/timeago.vue b/src/components/timeago/timeago.vue @@ -61,7 +61,7 @@ export default { }) } else if (DateUtils.isSameMonth(this.timeAsDate, now)) { return new Intl.DateTimeFormat(this.browserLocale, { - hour: 'numeric', + month: 'short', day: 'numeric' }) } else if (DateUtils.isSameYear(this.timeAsDate, now)) { diff --git a/src/modules/config.js b/src/modules/config.js @@ -181,7 +181,7 @@ export const defaultState = { closingDrawerMarksAsSeen: undefined, // instance default unseenAtTop: undefined, // instance default ignoreInactionableSeen: undefined, // instance default - useAbsoluteTimeFormat: undefined, // instance defualt + useAbsoluteTimeFormat: undefined, // instance default absoluteTimeFormatMinAge: undefined // instance default }