Skip to content

Commit

Permalink
Revert a mishap in 7ff95e2
Browse files Browse the repository at this point in the history
  • Loading branch information
AntsyLich committed Feb 16, 2024
1 parent 6bdb37b commit e183cbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.platform.LocalContext
import eu.kanade.domain.ui.UiPreferences
import eu.kanade.tachiyomi.util.lang.toRelativeSting
import eu.kanade.tachiyomi.util.lang.toRelativeString
import tachiyomi.i18n.MR
import tachiyomi.presentation.core.i18n.stringResource
import uy.kohesive.injekt.Injekt
Expand Down Expand Up @@ -36,7 +36,7 @@ fun relativeDateText(
val relativeTime = remember { preferences.relativeTime().get() }
val dateFormat = remember { UiPreferences.dateFormat(preferences.dateFormat().get()) }

return localDate?.toRelativeSting(
return localDate?.toRelativeString(
context = context,
relative = relativeTime,
dateFormat = dateFormat,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fun Long.toLocalDate(): LocalDate {
return LocalDate.ofInstant(Instant.ofEpochMilli(this), ZoneId.systemDefault())
}

fun LocalDate.toRelativeSting(
fun LocalDate.toRelativeString(
context: Context,
relative: Boolean = true,
dateFormat: DateTimeFormatter = DateTimeFormatter.ofLocalizedDate(FormatStyle.SHORT),
Expand Down

0 comments on commit e183cbb

Please sign in to comment.