Просмотр исходного кода

Convert seconds to milliseconds for Nightscout profile

Jan Dittmer 4 лет назад
Родитель
Сommit
c9ef464894
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      FreeAPS/Sources/Services/Network/NightscoutManager.swift

+ 1 - 1
FreeAPS/Sources/Services/Network/NightscoutManager.swift

@@ -312,7 +312,7 @@ final class BaseNightscoutManager: NightscoutManager, Injectable {
         let p = NightscoutProfileStore(
             defaultProfile: defaultProfile,
             startDate: now,
-            mills: Int(now.timeIntervalSince1970),
+            mills: Int(now.timeIntervalSince1970) * 1000,
             units: nsUnits,
             enteredBy: NigtscoutTreatment.local,
             store: [defaultProfile: ps]