1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-24 14:31:44 +01:00

Adds seconds and fixes #1136

This commit is contained in:
Amir Raminfar
2021-04-10 17:07:30 -07:00
parent bba34aa582
commit 232ec7d27a

View File

@@ -31,7 +31,14 @@ export default {
computed: {
...mapState(["settings"]),
locale() {
return styles[this.settings.hourStyle];
const locale = styles[this.settings.hourStyle];
const oldFormatter = locale.formatRelative;
return {
...locale,
formatRelative(token) {
return oldFormatter(token) + "p";
},
};
},
},
filters: {