From the end of the time

This commit is contained in:
M66B
2019-08-20 21:12:45 +02:00
parent dd44918b4c
commit 23562395fd
3 changed files with 4 additions and 11 deletions

View File

@@ -370,7 +370,7 @@ public class EntityRule {
cal.set(Calendar.HOUR_OF_DAY, hour);
cal.set(Calendar.MINUTE, minute);
cal.set(Calendar.SECOND, 0);
wakeup = cal.getTimeInMillis();
wakeup = cal.getTimeInMillis() + duration * 3600 * 1000L;
} else
wakeup = message.received + duration * 3600 * 1000L;