diff --git a/app/src/main/java/com/topjohnwu/magisk/core/utils/Keygen.kt b/app/src/main/java/com/topjohnwu/magisk/core/utils/Keygen.kt index 90dfe0ef5..7fba0f5d6 100644 --- a/app/src/main/java/com/topjohnwu/magisk/core/utils/Keygen.kt +++ b/app/src/main/java/com/topjohnwu/magisk/core/utils/Keygen.kt @@ -41,7 +41,7 @@ class Keygen(context: Context) : CertKeyProvider { } private val start = Calendar.getInstance().apply { add(Calendar.MONTH, -3) } - private val end = start.apply { add(Calendar.YEAR, 30) } + private val end = (start.clone() as Calendar).apply { add(Calendar.YEAR, 30) } override val cert get() = provider.cert override val key get() = provider.key