mirror of
https://github.com/Eyre-S/Coeur-Morny-Cono.git
synced 2024-11-22 19:24:53 +08:00
fix error while converting millis to nanos in MedicationTimer
This commit is contained in:
parent
2c7c4a2a6b
commit
2ffab30ef1
@ -5,7 +5,7 @@ MORNY_ARCHIVE_NAME = morny-coeur
|
|||||||
MORNY_CODE_STORE = https://github.com/Eyre-S/Coeur-Morny-Cono
|
MORNY_CODE_STORE = https://github.com/Eyre-S/Coeur-Morny-Cono
|
||||||
MORNY_COMMIT_PATH = https://github.com/Eyre-S/Coeur-Morny-Cono/commit/%s
|
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
|
USE_DELTA = false
|
||||||
VERSION_DELTA =
|
VERSION_DELTA =
|
||||||
|
@ -76,7 +76,7 @@ public class MedicationTimer extends Thread {
|
|||||||
|
|
||||||
public static long calcNextRoutineTimestamp (long baseTimeMillis, ZoneOffset useTimeZone, Set<Integer> atHours) {
|
public static long calcNextRoutineTimestamp (long baseTimeMillis, ZoneOffset useTimeZone, Set<Integer> atHours) {
|
||||||
LocalDateTime time = LocalDateTime.ofEpochSecond(
|
LocalDateTime time = LocalDateTime.ofEpochSecond(
|
||||||
baseTimeMillis/1000, (int)baseTimeMillis%1000*1000*1000,
|
baseTimeMillis/1000, (int)baseTimeMillis%1000*1000,
|
||||||
useTimeZone
|
useTimeZone
|
||||||
).withMinute(0).withSecond(0).withNano(0);
|
).withMinute(0).withSecond(0).withNano(0);
|
||||||
do {
|
do {
|
||||||
|
Loading…
Reference in New Issue
Block a user