diff --git a/LoopFollow/Controllers/Nightscout/BGData.swift b/LoopFollow/Controllers/Nightscout/BGData.swift index 082dccf0e..c07da66d5 100644 --- a/LoopFollow/Controllers/Nightscout/BGData.swift +++ b/LoopFollow/Controllers/Nightscout/BGData.swift @@ -51,10 +51,9 @@ extension MainViewController { } var parameters: [String: String] = [:] - let utcISODateFormatter = ISO8601DateFormatter() let date = Calendar.current.date(byAdding: .day, value: -1 * Storage.shared.downloadDays.value, to: Date())! parameters["count"] = "\(Storage.shared.downloadDays.value * 2 * 24 * 60 / 5)" - parameters["find[dateString][$gte]"] = utcISODateFormatter.string(from: date) + parameters["find[date][$gte]"] = "\(Int(date.timeIntervalSince1970 * 1000))" // Exclude 'cal' entries parameters["find[type][$ne]"] = "cal"