From 0f46d790f3d37eb52565e2626c7f4900e81dfb65 Mon Sep 17 00:00:00 2001 From: Denis Gukov Date: Mon, 7 Oct 2024 17:49:08 +0500 Subject: [PATCH] feat(ui): 24 time format --- web/src/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/main.js b/web/src/main.js index bf184829..d88e5a6d 100644 --- a/web/src/main.js +++ b/web/src/main.js @@ -21,9 +21,9 @@ Vue.filter('formatDate', (value) => { const now = moment(); if (now.isSame(date, 'day')) { - return `${date.fromNow()} (${date.format('LT')})`; // Display only time if today + return `${date.fromNow()} (${date.format('HH:mm')})`; // Display only time if today } - return date.format('L LT'); // Display only date otherwise + return date.format('L HH:mm'); // Display only date otherwise }); Vue.filter('formatTime', (value) => (value ? moment(String(value)).format('LTS') : '—')); Vue.filter('formatLog', (value) => (value ? convert.toHtml(String(value)) : value));