Merge pull request #2384 from PoweRGbg/patch-3

Allows selecting 12:00AM (#2831)
This commit is contained in:
Milos Kozak 2020-01-24 09:21:11 +01:00 committed by GitHub
commit a859776b84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);