mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix(web): correctly format future timeline dates (#11506)
This commit is contained in:
parent
1f0f880ecb
commit
3afb5b497f
2 changed files with 18 additions and 6 deletions
|
|
@ -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' });
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue