From eea5082278603e9bb3e95d669711919456192bee Mon Sep 17 00:00:00 2001 From: Andrew Warrington Date: Sun, 3 Dec 2017 19:01:56 +0100 Subject: [PATCH] Revert unnecessary change. --- .../plugins/NSClientInternal/data/NSDeviceStatus.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/data/NSDeviceStatus.java b/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/data/NSDeviceStatus.java index 20e601bea3..6ce5ab0440 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/data/NSDeviceStatus.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/data/NSDeviceStatus.java @@ -264,8 +264,8 @@ public class NSDeviceStatus { JSONObject enacted = openaps.has("enacted") ? openaps.getJSONObject("enacted") : new JSONObject(); long clock = 0L; - if (suggested.has("deliverAt")) - clock = DateUtil.fromISODateString(suggested.getString("deliverAt")).getTime(); + if (suggested.has("timestamp")) + clock = DateUtil.fromISODateString(suggested.getString("timestamp")).getTime(); // check if this is new data if (clock != 0 && clock > deviceStatusOpenAPSData.clockSuggested) { deviceStatusOpenAPSData.suggested = suggested;