all repos — caroster @ d6b4f7eafc29c41d251109461090c1ccf6bab922

[Octree] Group carpool to your event https://caroster.io

fix: :bug: Fix time display in notifications drawer

#544
Tim Izzo tim@octree.ch
Tue, 05 Nov 2024 10:58:15 +0100
commit

d6b4f7eafc29c41d251109461090c1ccf6bab922

parent

29941fd1dfaf984464b9d509b0007ddf39f36277

1 files changed, 2 insertions(+), 5 deletions(-)

jump to
M frontend/containers/DrawerNotification/formatDate.tsfrontend/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'); };