fix(web): correctly format future timeline dates (#11506)

This commit is contained in:
Michel Heusschen 2024-08-01 13:39:26 +02:00 committed by GitHub
parent 1f0f880ecb
commit 3afb5b497f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 6 deletions

View file

@ -32,7 +32,7 @@ export function formatGroupTitle(_date: DateTime): string {
}
// Last week
if (date >= today.minus({ days: 6 })) {
if (date >= today.minus({ days: 6 }) && date < today) {
return date.toLocaleString({ weekday: 'long' });
}