Use Calendar.HOUR_OF_DAY instead of Calendar.HOUR in QuietTimeChecker
Fixes #2999
This commit is contained in:
parent
8fd6a4c83a
commit
e9d90b1e75
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ class QuietTimeChecker {
|
|||
Integer endHour = Integer.parseInt(quietTimeEnd.split(":")[0]);
|
||||
Integer endMinute = Integer.parseInt(quietTimeEnd.split(":")[1]);
|
||||
|
||||
Integer now = (gregorianCalendar.get(Calendar.HOUR) * 60) + gregorianCalendar.get(Calendar.MINUTE);
|
||||
Integer now = (gregorianCalendar.get(Calendar.HOUR_OF_DAY) * 60) + gregorianCalendar.get(Calendar.MINUTE);
|
||||
Integer quietStarts = startHour * 60 + startMinute;
|
||||
Integer quietEnds = endHour * 60 + endMinute;
|
||||
|
||||
|
|
Loading…
Reference in a new issue