mirror of
https://github.com/immich-app/immich.git
synced 2025-11-26 18:49:44 +09:00
fix(web): correctly format future timeline dates (#11506)
This commit is contained in:
@@ -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' });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user