@@ -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 {
+ expire = (info[1].toDouble() * 1000).toLong()