summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/bingo
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-09 12:46:20 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-09 12:46:20 +0100
commitaff4c2a100b4fcfbfcaac625728f55fe68dc6872 (patch)
treeabfc0933dcd4adbc096ec856aaff753d2da57fb0 /src/main/java/at/hannibal2/skyhanni/features/bingo
parentbba11f79532a7c70855af1ee00bff1c966fdf62d (diff)
downloadskyhanni-aff4c2a100b4fcfbfcaac625728f55fe68dc6872.tar.gz
skyhanni-aff4c2a100b4fcfbfcaac625728f55fe68dc6872.tar.bz2
skyhanni-aff4c2a100b4fcfbfcaac625728f55fe68dc6872.zip
Hide Winter Island close timer during the month of December.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/bingo')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/bingo/BingoAPI.kt5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoAPI.kt b/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoAPI.kt
index 8b352578a..76ed7c684 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoAPI.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoAPI.kt
@@ -9,11 +9,10 @@ import at.hannibal2.skyhanni.features.bingo.card.goals.BingoGoal
import at.hannibal2.skyhanni.features.bingo.card.goals.GoalType
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.SimpleTimeMark
+import at.hannibal2.skyhanni.utils.TimeUtils
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
-import java.time.LocalDate
import java.time.LocalTime
import java.time.OffsetDateTime
-import java.time.ZoneId
import java.time.ZoneOffset
object BingoAPI {
@@ -51,7 +50,7 @@ object BingoAPI {
}
private fun getStartOfMonthInMillis() = OffsetDateTime.of(
- LocalDate.now(ZoneId.of("UTC")).plusDays(5).withDayOfMonth(1),
+ TimeUtils.getCurrentLocalDate().plusDays(5).withDayOfMonth(1),
LocalTime.MIDNIGHT, ZoneOffset.UTC
).toEpochSecond()