mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix: show local dates for range in album summary (#15654)
* fix(web): show local dates for range in album summary * fix(server): show local dates for range in album summary
This commit is contained in:
parent
cb6d94c7a7
commit
da580d4685
9 changed files with 17 additions and 20 deletions
|
|
@ -11,7 +11,10 @@
|
|||
let { album }: Props = $props();
|
||||
|
||||
const formatDate = (date?: string) => {
|
||||
return date ? new Date(date).toLocaleDateString($locale, dateFormats.album) : undefined;
|
||||
const dateWithoutTimeZone = date?.slice(0, -1);
|
||||
return dateWithoutTimeZone
|
||||
? new Date(dateWithoutTimeZone).toLocaleDateString($locale, dateFormats.album)
|
||||
: undefined;
|
||||
};
|
||||
|
||||
const getDateRange = (start?: string, end?: string) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue