Skip to content

Commit

Permalink
Replace usage of java.time (#584)
Browse files Browse the repository at this point in the history
  • Loading branch information
TinasheMzondiwa authored Mar 15, 2023
1 parent 853f415 commit 32eafa5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ import kotlinx.coroutines.flow.map
import kotlinx.coroutines.flow.onStart
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import org.joda.time.Instant
import ss.misc.DeviceHelper
import ss.prefs.api.SSPrefs
import timber.log.Timber
import java.time.Instant
import javax.inject.Inject
import javax.inject.Singleton

Expand Down
4 changes: 2 additions & 2 deletions common/misc/src/main/java/ss/misc/DeviceHelper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ package ss.misc
import android.content.Context
import android.telephony.TelephonyManager
import dagger.hilt.android.qualifiers.ApplicationContext
import java.time.Instant
import org.joda.time.Instant
import javax.inject.Inject
import javax.inject.Singleton

Expand All @@ -44,5 +44,5 @@ internal class DeviceHelperImpl @Inject constructor(
}

override fun country(): String = telephonyManager.networkCountryIso
override fun nowEpochMilli(): Long = Instant.now().toEpochMilli()
override fun nowEpochMilli(): Long = Instant.now().millis
}
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ markwon = "4.6.2"
material-dialogs = "3.3.0"
# @keep this version
pdfkit = "8.5.1"
sgp = "0.6.0"
sgp = "0.5.10"
snapper = "0.3.0"
sortDependencies = "0.2"
spotless = "6.17.0"
Expand Down

0 comments on commit 32eafa5

Please sign in to comment.