From 0a5bd7f935f416257589defa57838a2ea5ec74fe Mon Sep 17 00:00:00 2001 From: Tim Gunn <2896311+Tornado-Tim@users.noreply.github.com> Date: Fri, 29 Nov 2019 21:24:05 +1300 Subject: [PATCH] Hack determine_basal so a date string could be converted to date object --- app/src/main/assets/OpenAPSSMB/determine-basal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/assets/OpenAPSSMB/determine-basal.js b/app/src/main/assets/OpenAPSSMB/determine-basal.js index 0ddbd9d601..363e46da73 100644 --- a/app/src/main/assets/OpenAPSSMB/determine-basal.js +++ b/app/src/main/assets/OpenAPSSMB/determine-basal.js @@ -115,7 +115,7 @@ var determine_basal = function determine_basal(glucose_status, currenttemp, iob_ var deliverAt = new Date(); if (currentTime) { - deliverAt = currentTime; + deliverAt = new Date(currentTime); } if (typeof profile === 'undefined' || typeof profile.current_basal === 'undefined') {