Increase the value of 'NEW' to 3 months

This commit is contained in:
Balazs Perlaki-Horvath 2024-08-05 15:03:00 +02:00
parent 34d61f0bae
commit 5cb5e53aa7

View File

@ -99,7 +99,7 @@ struct ZimFilesNew: View {
NSPredicate(format: "languageCode IN %@", Defaults[.libraryLanguageCodes]),
NSPredicate(format: "requiresServiceWorkers == false")
]
if let aMonthAgo = Calendar.current.date(byAdding: .month, value: -1, to: Date()) {
if let aMonthAgo = Calendar.current.date(byAdding: .month, value: -3, to: Date()) {
predicates.append(NSPredicate(format: "created > %@", aMonthAgo as CVarArg))
}
if !searchText.isEmpty {