fix: :bug: Fix time display in notifications drawer #544
Tim Izzo tim@octree.ch
Tue, 05 Nov 2024 10:58:15 +0100
1 files changed,
2 insertions(+),
5 deletions(-)
M
frontend/containers/DrawerNotification/formatDate.ts
→
frontend/containers/DrawerNotification/formatDate.ts
@@ -6,9 +6,6 @@ const momentDate = moment(dateString);
const isToday = momentDate.isSame(moment(), 'day'); const {t} = useTranslation(); - if (isToday) { - return `${t('date.today')}, ${momentDate.format('hh:mm')}`; - } else { - return momentDate.format('DD/MM/YY, H:mm'); - } + if (isToday) return `${t('date.today')}, ${momentDate.format('LT')}`; + else return momentDate.format('DD/MM/YY, LT'); };