mirror of
https://github.com/immich-app/immich.git
synced 2025-05-24 01:12:58 -04:00
don't bother leap year date
This commit is contained in:
parent
61ac256556
commit
f9e370e8a7
@ -35,6 +35,12 @@ export class MemoryService extends BaseService {
|
||||
// generate a memory +/- X days from today
|
||||
for (let i = 0; i <= DAYS * 2 + 1; i++) {
|
||||
const target = start.plus({ days: i });
|
||||
|
||||
// Don't bother leap year day
|
||||
if (target.month === 2 && target.day === 29) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (lastOnThisDayDate > target) {
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user