Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] Fix

laurensprieme459da3908b2
diff --git a/mobile/lib/services/smart_memories_service.dart b/mobile/lib/services/smart_memories_service.dart
index d8a5b33c87..964c82127e 100644
--- a/mobile/lib/services/smart_memories_service.dart
+++ b/mobile/lib/services/smart_memories_service.dart
@@ -1131,7 +1131,8 @@ class SmartMemoriesService {
final windowEnd =
currentTime.add(kMemoriesUpdateFrequency).microsecondsSinceEpoch;
final currentYear = currentTime.year;
- final cutOffTime = currentTime.subtract(const Duration(days: 365));
+ final cutOffTime = currentTime
+ .subtract(const Duration(days: 364) - kMemoriesUpdateFrequency);
final timeTillYearEnd = DateTime(currentYear + 1).difference(currentTime);
final bool almostYearEnd = timeTillYearEnd < kMemoriesUpdateFrequency;