diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/pump/insight/LocalInsightPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/pump/insight/LocalInsightPlugin.java index 94548a7b30..aebcb7eaf6 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/pump/insight/LocalInsightPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/pump/insight/LocalInsightPlugin.java @@ -1382,13 +1382,13 @@ public class LocalInsightPlugin extends PumpPluginBase implements PumpInterface, pumpID.eventID = event.getEventPosition(); pumpID.pumpSerial = serial; pumpID.eventType = "EndOfTBR"; - pumpID.timestamp = timestamp - 1500L; + pumpID.timestamp = timestamp; MainApp.getDbHelper().createOrUpdate(pumpID); TemporaryBasal temporaryBasal = new TemporaryBasal(getInjector()); temporaryBasal.durationInMinutes = 0; temporaryBasal.source = Source.PUMP; temporaryBasal.pumpId = pumpID.id; - temporaryBasal.date = timestamp; + temporaryBasal.date = timestamp - 1500L; temporaryBasals.add(temporaryBasal); }