Merge pull request #2384 from PoweRGbg/patch-3
Allows selecting 12:00AM (#2831)
This commit is contained in:
commit
a859776b84
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ public class TriggerTimeRange extends Trigger {
|
||||||
|
|
||||||
public int getMinSinceMidnight(long time) {
|
public int getMinSinceMidnight(long time) {
|
||||||
// if passed argument is smaller than 1440 ( 24 h * 60 min ) that value is already converted
|
// 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;
|
return (int) time;
|
||||||
Calendar calendar = DateUtil.gregorianCalendar();
|
Calendar calendar = DateUtil.gregorianCalendar();
|
||||||
calendar.setTimeInMillis(time);
|
calendar.setTimeInMillis(time);
|
||||||
|
|
Loading…
Reference in a new issue