commit: 1857d0fadd0ca9734956bc0555312e75baea8a88
parent cec2ae2fbda912496457d0cba9cb6141ee83ac76
Author: HJ <30-hj@users.noreply.git.pleroma.social>
Date: Wed, 13 Nov 2024 09:19:17 +0000
Merge branch 'absolute_time_format' into 'develop'
Absolute time format
Closes #1342
See merge request pleroma/pleroma-fe!1952
Diffstat:
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
}