From 19eb6660e11b23c84b78e7ec275568919bfc0eb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20F=C3=BCrderer?= Date: Sat, 8 Jun 2019 16:35:45 +0200 Subject: [PATCH] Fix display of the month at creation date --- .../hso/texturesyncclient/controller/net/InternalJsonModel.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/main/kotlin/org/hso/texturesyncclient/controller/net/InternalJsonModel.kt b/client/src/main/kotlin/org/hso/texturesyncclient/controller/net/InternalJsonModel.kt index 324b430..1d11444 100644 --- a/client/src/main/kotlin/org/hso/texturesyncclient/controller/net/InternalJsonModel.kt +++ b/client/src/main/kotlin/org/hso/texturesyncclient/controller/net/InternalJsonModel.kt @@ -50,11 +50,11 @@ internal data class InternalTexture( else -> throw ConnectionInvalidJsonException() }, resolution = Pair(resolution[0], resolution[1]), - addedOn = GregorianCalendar(added_on[0], added_on[1], added_on[2]), + addedOn = GregorianCalendar(added_on[0], added_on[1] - 1, added_on[2]), textureHash = Sha256(texture_hash) ) } catch (e: Exception) { // i Know, but no time :[] throw ConnectionInvalidJsonException() } } -} \ No newline at end of file +}