Skip to content

Commit

Permalink
fix: using getDate() instead of getDate() for retrieving the d
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxSchaefer committed Aug 15, 2023
1 parent 1650aa3 commit 3450fb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/components/TimeDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 3450fb5

Please sign in to comment.