Merge branch 'absolute_time_format' into 'develop'

Absolute time format

Closes #1342

See merge request pleroma/pleroma-fe!1952
This commit is contained in:
HJ 2024-11-13 09:19:17 +00:00
commit 1857d0fadd
3 changed files with 3 additions and 2 deletions

View file

@ -0,0 +1 @@
Show only month and day instead of weird "day, hour" format. While at it, fixed typo "defualt" in a comment.

View file

@ -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)) {

View file

@ -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
}