Fix display of the month at creation date

This commit is contained in:
Lukas Fürderer 2019-06-08 16:35:45 +02:00
parent 4e8b4c364b
commit 19eb6660e1
1 changed files with 2 additions and 2 deletions

View File

@ -50,11 +50,11 @@ internal data class InternalTexture(
else -> throw ConnectionInvalidJsonException() else -> throw ConnectionInvalidJsonException()
}, },
resolution = Pair(resolution[0], resolution[1]), 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) textureHash = Sha256(texture_hash)
) )
} catch (e: Exception) { // i Know, but no time :[] } catch (e: Exception) { // i Know, but no time :[]
throw ConnectionInvalidJsonException() throw ConnectionInvalidJsonException()
} }
} }
} }