small fix

This commit is contained in:
hexated 2023-09-21 14:50:29 +07:00
parent cdf15ff08a
commit 10b3595c0e
2 changed files with 3 additions and 2 deletions

View file

@ -1338,7 +1338,7 @@ fun isUpcoming(dateString: String?): Boolean {
return try {
val format = SimpleDateFormat("yyyy-MM-dd", Locale.getDefault())
val dateTime = dateString?.let { format.parse(it)?.time } ?: return false
return unixTimeMS < dateTime
unixTimeMS < dateTime
} catch (t: Throwable) {
logError(t)
false