From 7f4f95cf830002b4f0764e08528defac3c31f118 Mon Sep 17 00:00:00 2001 From: vvb2060 Date: Fri, 3 Dec 2021 02:24:25 +0800 Subject: [PATCH] Fix certificate start time --- app/src/main/java/com/topjohnwu/magisk/core/utils/Keygen.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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