Hack determine_basal so a date string could be converted to date object

This commit is contained in:
Tim Gunn 2019-11-29 21:24:05 +13:00
parent 8eeb91a0a8
commit 0a5bd7f935

View file

@ -115,7 +115,7 @@ var determine_basal = function determine_basal(glucose_status, currenttemp, iob_
var deliverAt = new Date(); var deliverAt = new Date();
if (currentTime) { if (currentTime) {
deliverAt = currentTime; deliverAt = new Date(currentTime);
} }
if (typeof profile === 'undefined' || typeof profile.current_basal === 'undefined') { if (typeof profile === 'undefined' || typeof profile.current_basal === 'undefined') {