diff --git a/pom.xml b/pom.xml
index e9874af..9b0fbf5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,6 +14,8 @@
17
3.2.5
6.4.4.Final
+ 1.18.3
+ 0.8.14
UTF-8
UTF-8
@@ -27,6 +29,16 @@
pom
import
+
+ net.bytebuddy
+ byte-buddy
+ ${bytebuddy.version}
+
+
+ net.bytebuddy
+ byte-buddy-agent
+ ${bytebuddy.version}
+
@@ -138,7 +150,7 @@
org.jacoco
jacoco-maven-plugin
- 0.8.11
+ ${jacoco.version}
@@ -154,6 +166,16 @@
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+ 3.2.5
+
+
+ true
+
+
+
org.springframework.boot
spring-boot-maven-plugin
@@ -200,4 +222,5 @@
+
diff --git a/src/main/java/dev/kruhlmann/imgfloat/service/EmoteSyncScheduler.java b/src/main/java/dev/kruhlmann/imgfloat/service/EmoteSyncScheduler.java
index dfc0316..76d065f 100644
--- a/src/main/java/dev/kruhlmann/imgfloat/service/EmoteSyncScheduler.java
+++ b/src/main/java/dev/kruhlmann/imgfloat/service/EmoteSyncScheduler.java
@@ -5,7 +5,6 @@ import dev.kruhlmann.imgfloat.model.Settings;
import dev.kruhlmann.imgfloat.repository.ChannelRepository;
import java.time.Duration;
import java.time.Instant;
-import java.util.Date;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -54,7 +53,7 @@ public class EmoteSyncScheduler implements SchedulingConfigurer {
Instant lastCompletion = triggerContext.lastCompletionTime() == null
? Instant.now()
: triggerContext.lastCompletionTime().toInstant();
- return Date.from(lastCompletion.plus(Duration.ofMinutes(resolveIntervalMinutes())));
+ return lastCompletion.plus(Duration.ofMinutes(resolveIntervalMinutes()));
};
}