Commit 7f4f95cf authored by vvb2060's avatar vvb2060 Committed by John Wu

Fix certificate start time

parent 87c2f6ad
...@@ -41,7 +41,7 @@ class Keygen(context: Context) : CertKeyProvider { ...@@ -41,7 +41,7 @@ class Keygen(context: Context) : CertKeyProvider {
} }
private val start = Calendar.getInstance().apply { add(Calendar.MONTH, -3) } 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 cert get() = provider.cert
override val key get() = provider.key override val key get() = provider.key
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment