ExperimentalTime OptIn is now needed.
This commit is contained in:
parent
067e597222
commit
d478077487
1 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue