aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/util
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-11-15 22:00:16 +0100
committerLinnea Gräf <nea@nea.moe>2025-11-15 22:00:16 +0100
commit215178c650d38a4a77fdef6dc8815c07bef29c25 (patch)
tree81f1e193ed519152b367cbd6f9fa0abf9d64a580 /src/main/kotlin/util
parente8b2a48cf4ca090ae8e02f849e8175992045b2ed (diff)
downloadFirmament-215178c650d38a4a77fdef6dc8815c07bef29c25.tar.gz
Firmament-215178c650d38a4a77fdef6dc8815c07bef29c25.tar.bz2
Firmament-215178c650d38a4a77fdef6dc8815c07bef29c25.zip
fix: make parsing timestamps case insensitive
Diffstat (limited to 'src/main/kotlin/util')
-rw-r--r--src/main/kotlin/util/SkyblockId.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/kotlin/util/SkyblockId.kt b/src/main/kotlin/util/SkyblockId.kt
index 7fb6542..7e39a75 100644
--- a/src/main/kotlin/util/SkyblockId.kt
+++ b/src/main/kotlin/util/SkyblockId.kt
@@ -151,6 +151,7 @@ val ItemStack.skyBlockUUIDString: String?
private val timestampFormat = //"10/11/21 3:39 PM"
DateTimeFormatterBuilder().apply {
+ parseCaseInsensitive()
appendValue(ChronoField.MONTH_OF_YEAR, 1, 2, SignStyle.NOT_NEGATIVE)
appendLiteral("/")
appendValue(ChronoField.DAY_OF_MONTH, 1, 2, SignStyle.NOT_NEGATIVE)