Commit d1636afc authored by Divyanshu Bhargava's avatar Divyanshu Bhargava

Type mismatch error fixed

parent 5ce5e0e3
......@@ -17,8 +17,8 @@ object DateTimeHelper {
* @param long The [Long]
* @return The [LocalDateTime] from a [Long].
*/
fun getLocalDateTime(long: Long): LocalDateTime {
return LocalDateTime.ofInstant(Instant.ofEpochMilli(long), ZoneId.systemDefault())
fun getLocalDateTime(long: Long?): LocalDateTime {
return LocalDateTime.ofInstant(long?.let { Instant.ofEpochMilli(it) }, ZoneId.systemDefault())
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment