fix error while converting millis to nanos in MedicationTimer

This commit is contained in:
A.C.Sukazyo Eyre 2022-11-17 13:54:48 +08:00
parent 2c7c4a2a6b
commit 2ffab30ef1
Signed by: Eyre_S
GPG Key ID: C17CE40291207874
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ MORNY_ARCHIVE_NAME = morny-coeur
MORNY_CODE_STORE = https://github.com/Eyre-S/Coeur-Morny-Cono
MORNY_COMMIT_PATH = https://github.com/Eyre-S/Coeur-Morny-Cono/commit/%s
VERSION = 1.0.0-RC2
VERSION = 1.0.0-RC2.1
USE_DELTA = false
VERSION_DELTA =

View File

@ -76,7 +76,7 @@ public class MedicationTimer extends Thread {
public static long calcNextRoutineTimestamp (long baseTimeMillis, ZoneOffset useTimeZone, Set<Integer> atHours) {
LocalDateTime time = LocalDateTime.ofEpochSecond(
baseTimeMillis/1000, (int)baseTimeMillis%1000*1000*1000,
baseTimeMillis/1000, (int)baseTimeMillis%1000*1000,
useTimeZone
).withMinute(0).withSecond(0).withNano(0);
do {