Missing imports (#404)

This commit is contained in:
Sadwhy 2024-06-01 19:27:33 +06:00 committed by GitHub
parent ce7ae28e1e
commit 74cab22eca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,10 +1,14 @@
package ani.dantotsu.others package ani.dantotsu.others
import androidx.fragment.app.FragmentActivity import androidx.fragment.app.FragmentActivity
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import java.text.SimpleDateFormat
import java.util.Locale
object AppUpdater { object AppUpdater {
suspend fun check(activity: FragmentActivity, post: Boolean = false) { suspend fun check(activity: FragmentActivity, post: Boolean = false) {
//no-op // no-op
} }
@Serializable @Serializable
@ -28,5 +32,9 @@ object AppUpdater {
fun timeStamp(): Long { fun timeStamp(): Long {
return dateFormat.parse(createdAt)!!.time return dateFormat.parse(createdAt)!!.time
} }
companion object {
private val dateFormat = SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'", Locale.getDefault())
}
} }
} }