override fun deserialize()

in agent/src/main/kotlin/com/jetbrains/teamcity/plugins/unrealengine/agent/build/log/UnrealJsonLogEventParser.kt [35:40]


    override fun deserialize(decoder: Decoder): Instant {
        val input = decoder.decodeString()
        val normalizedInput = if (input.endsWith("Z")) input else "${input}Z"
        val formatter = DateTimeFormatter.ISO_INSTANT
        return Instant.from(formatter.parse(normalizedInput))
    }