mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
ExperimentalTime OptIn is now needed.
This commit is contained in:
+2
@@ -20,6 +20,7 @@ import java.time.Period
|
|||||||
import java.util.Locale
|
import java.util.Locale
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
import kotlin.math.absoluteValue
|
import kotlin.math.absoluteValue
|
||||||
|
import kotlin.time.ExperimentalTime
|
||||||
|
|
||||||
@SingleIn(AppScope::class)
|
@SingleIn(AppScope::class)
|
||||||
class DateFormatters @Inject constructor(
|
class DateFormatters @Inject constructor(
|
||||||
@@ -67,6 +68,7 @@ class DateFormatters @Inject constructor(
|
|||||||
return dateTimeFormatters.dateWithFullFormatNoYearFormatter.format(localDateTime.toJavaLocalDateTime())
|
return dateTimeFormatters.dateWithFullFormatNoYearFormatter.format(localDateTime.toJavaLocalDateTime())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@OptIn(ExperimentalTime::class)
|
||||||
internal fun formatDate(
|
internal fun formatDate(
|
||||||
dateToFormat: LocalDateTime,
|
dateToFormat: LocalDateTime,
|
||||||
currentDate: LocalDateTime,
|
currentDate: LocalDateTime,
|
||||||
|
|||||||
Reference in New Issue
Block a user