diff --git a/src/main/java/eu/m724/wtapi/provider/twilight/impl/approximate/ApproximateTwilightTimeProvider.java b/src/main/java/eu/m724/wtapi/provider/twilight/impl/approximate/ApproximateTwilightTimeProvider.java index 663d73b..ead0be3 100644 --- a/src/main/java/eu/m724/wtapi/provider/twilight/impl/approximate/ApproximateTwilightTimeProvider.java +++ b/src/main/java/eu/m724/wtapi/provider/twilight/impl/approximate/ApproximateTwilightTimeProvider.java @@ -3,7 +3,6 @@ package eu.m724.wtapi.provider.twilight.impl.approximate; import eu.m724.wtapi.object.Coordinates; import eu.m724.wtapi.object.Twilight; import eu.m724.wtapi.provider.twilight.CacheableTwilightTimeProvider; -import eu.m724.wtapi.provider.twilight.TwilightTimeCache; import java.time.Duration; import java.time.LocalDate; @@ -37,7 +36,7 @@ public class ApproximateTwilightTimeProvider extends CacheableTwilightTimeProvid double sunset = solarNoon + hourAngleDeg; return new Twilight( - date, + cache.date(), Duration.ofMillis((long) (sunrise * 60000)), Duration.ofMillis((long) (sunset * 60000)) );