mirror of
https://github.com/MetaCubeX/ClashMetaForAndroid.git
synced 2024-11-16 13:22:18 +08:00
fix: type error for subscription
This commit is contained in:
parent
c6084c67a5
commit
2ab1571e3a
|
@ -72,5 +72,5 @@ fun Double.toProgress(): Int {
|
|||
}
|
||||
fun Long.toDateStr(): String {
|
||||
val simpleDateFormat =SimpleDateFormat("yyyy-MM-dd HH:mm:ss")
|
||||
return simpleDateFormat.format(Date(this*1000))
|
||||
return simpleDateFormat.format(Date(this))
|
||||
}
|
|
@ -169,7 +169,7 @@ class ProfileManager(private val context: Context) : IProfileManager,
|
|||
|
||||
info[0].contains("expire") -> {
|
||||
if (info[1].isNotEmpty()) {
|
||||
expire = info[1].toLong()
|
||||
expire = (info[1].toDouble()*1000).toLong()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -96,7 +96,7 @@ object ProfileProcessor {
|
|||
|
||||
info[0].contains("expire") -> {
|
||||
if (info[1].isNotEmpty()) {
|
||||
expire = info[1].toLong()
|
||||
expire = (info[1].toDouble() * 1000).toLong()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user