aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/util
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-07-27 23:44:19 +0200
committerLinnea Gräf <nea@nea.moe>2025-07-27 23:44:19 +0200
commit9467c6f536f4f06e4dc2341fa074f8d34b572d2e (patch)
tree1ce1298900b08142d3d65a198b89105912c2b13e /src/main/kotlin/util
parent94648e1eb81f50e31b84ce25a464d99cafa259d5 (diff)
downloadFirmament-9467c6f536f4f06e4dc2341fa074f8d34b572d2e.tar.gz
Firmament-9467c6f536f4f06e4dc2341fa074f8d34b572d2e.tar.bz2
Firmament-9467c6f536f4f06e4dc2341fa074f8d34b572d2e.zip
fix: incorrect parsing of some old timestamps
Diffstat (limited to 'src/main/kotlin/util')
-rw-r--r--src/main/kotlin/util/SkyblockId.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/kotlin/util/SkyblockId.kt b/src/main/kotlin/util/SkyblockId.kt
index 051ca86..03b8bf4 100644
--- a/src/main/kotlin/util/SkyblockId.kt
+++ b/src/main/kotlin/util/SkyblockId.kt
@@ -146,9 +146,9 @@ val ItemStack.skyblockUUIDString: String?
private val timestampFormat = //"10/11/21 3:39 PM"
DateTimeFormatterBuilder().apply {
- appendValue(ChronoField.MONTH_OF_YEAR, 2)
+ appendValue(ChronoField.MONTH_OF_YEAR, 1, 2, SignStyle.NOT_NEGATIVE)
appendLiteral("/")
- appendValue(ChronoField.DAY_OF_MONTH, 2)
+ appendValue(ChronoField.DAY_OF_MONTH, 1, 2, SignStyle.NOT_NEGATIVE)
appendLiteral("/")
appendValueReduced(ChronoField.YEAR, 2, 2, 1950)
appendLiteral(" ")