mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
feat: persistent memories (#15953)
feat: memories refactor chore: use heart as favorite icon fix: linting
This commit is contained in:
parent
502f6e020d
commit
d350022dec
29 changed files with 585 additions and 70 deletions
|
|
@ -77,3 +77,11 @@ export const getAlbumDateRange = (album: { startDate?: string; endDate?: string
|
|||
|
||||
return '';
|
||||
};
|
||||
|
||||
/**
|
||||
* Use this to convert from "5pm EST" to "5pm UTC"
|
||||
*
|
||||
* Useful with some APIs where you want to query by "today", but the values in the database are stored as UTC
|
||||
*/
|
||||
export const asLocalTimeISO = (date: DateTime<true>) =>
|
||||
(date.setZone('utc', { keepLocalTime: true }) as DateTime<true>).toISO();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue