Allows selecting 12:00AM (#2831)

This commit is contained in:
Roumen Georgiev 2020-01-22 14:11:20 +02:00 committed by GitHub
parent 8414c51493
commit cd0697fdbd
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);