diff --git a/changelog.d/weird-absolute-time-format.fix b/changelog.d/weird-absolute-time-format.fix new file mode 100644 index 0000000000000000000000000000000000000000..727d58764654b755dbff0f5e68a75a23ea685fb5 --- /dev/null +++ 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 index bf9184419e15ecb451242889e1937dafd3407e9a..484944d610e4f165af5bff5997b63e1b73fd6f59 100644 --- 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 index 835dcce4068a7d4912450d042fbcdfafe82d19ca..2a2ee2bee3e747beda972ecd454ffb88132dd41b 100644 --- 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 }