From 3450fb5fce66e1e29cfe08f74608ba86ae18977e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20Sch=C3=A4fer?= Date: Tue, 15 Aug 2023 20:32:48 +0200 Subject: [PATCH] fix: using getDate() instead of getDate() for retrieving the d --- lib/components/TimeDisplay.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/components/TimeDisplay.tsx b/lib/components/TimeDisplay.tsx index 69bcf982..425500f8 100644 --- a/lib/components/TimeDisplay.tsx +++ b/lib/components/TimeDisplay.tsx @@ -110,7 +110,7 @@ export const TimeDisplay = ({ if (mode === 'daysFromToday') { fullString = `${date.getHours().toString().padStart(2, '0')}:${date.getMinutes().toString().padStart(2, '0')} - ${displayString}` } else { - fullString = `${date.getDay()}. ${monthToTranslation[date.getMonth()]} ${date.getFullYear()}` + fullString = `${date.getDate()}. ${monthToTranslation[date.getMonth()]} ${date.getFullYear()}` } return (