From cd0697fdbd64dfad934871c2b49ef51b08f1a16d Mon Sep 17 00:00:00 2001 From: Roumen Georgiev Date: Wed, 22 Jan 2020 14:11:20 +0200 Subject: [PATCH] Allows selecting 12:00AM (#2831) --- .../plugins/general/automation/triggers/TriggerTimeRange.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/triggers/TriggerTimeRange.java b/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/triggers/TriggerTimeRange.java index 082c5af75c..adcd85bc71 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/triggers/TriggerTimeRange.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/triggers/TriggerTimeRange.java @@ -149,7 +149,7 @@ public class TriggerTimeRange extends Trigger { public int getMinSinceMidnight(long time) { // if passed argument is smaller than 1440 ( 24 h * 60 min ) that value is already converted - if (0 < time && time < 1441) + if (0 <= time && time < 1441) return (int) time; Calendar calendar = DateUtil.gregorianCalendar(); calendar.setTimeInMillis(time);