Skip to content

Commit

Permalink
Fix quiet time
Browse files Browse the repository at this point in the history
  • Loading branch information
cketti committed Jan 6, 2018
1 parent b07ffda commit fda4ecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion k9mail/src/main/java/com/fsck/k9/K9.java
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,7 @@ public static boolean isQuietTime() {
Integer endHour = Integer.parseInt(mQuietTimeEnds.split(":")[0]);
Integer endMinute = Integer.parseInt(mQuietTimeEnds.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;

Expand Down

0 comments on commit fda4ecd

Please sign in to comment.