diff --git a/changelog.d/weird-absolute-time-format.fix b/changelog.d/weird-absolute-time-format.fix new file mode 100644 index 00000000..727d5876 --- /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 bf918441..484944d6 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 835dcce4..2a2ee2be 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 }