Skip to content
Snippets Groups Projects
Commit 1857d0fa authored by HJ's avatar HJ :fire:
Browse files

Merge branch 'absolute_time_format' into 'develop'

Absolute time format

Closes #1342

See merge request !1952
parents cec2ae2f 898881ba
Branches feature/object-normalization
No related tags found
No related merge requests found
Pipeline #50859 passed
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
......@@ -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)) {
......
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment