fix: type error for subscription

This commit is contained in:
metacubex 2022-12-10 13:42:28 +08:00
parent c6084c67a5
commit 2ab1571e3a
3 changed files with 3 additions and 3 deletions

View File

@ -72,5 +72,5 @@ fun Double.toProgress(): Int {
} }
fun Long.toDateStr(): String { fun Long.toDateStr(): String {
val simpleDateFormat =SimpleDateFormat("yyyy-MM-dd HH:mm:ss") val simpleDateFormat =SimpleDateFormat("yyyy-MM-dd HH:mm:ss")
return simpleDateFormat.format(Date(this*1000)) return simpleDateFormat.format(Date(this))
} }

View File

@ -169,7 +169,7 @@ class ProfileManager(private val context: Context) : IProfileManager,
info[0].contains("expire") -> { info[0].contains("expire") -> {
if (info[1].isNotEmpty()) { if (info[1].isNotEmpty()) {
expire = info[1].toLong() expire = (info[1].toDouble()*1000).toLong()
} }
} }
} }

View File

@ -96,7 +96,7 @@ object ProfileProcessor {
info[0].contains("expire") -> { info[0].contains("expire") -> {
if (info[1].isNotEmpty()) { if (info[1].isNotEmpty()) {
expire = info[1].toLong() expire = (info[1].toDouble() * 1000).toLong()
} }
} }
} }