We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df49eef commit f119dc8Copy full SHA for f119dc8
packages/library-base/src/androidMain/kotlin/io/realm/kotlin/internal/platform/SystemUtilsAndroid.kt
@@ -44,6 +44,7 @@ public actual fun currentTime(): RealmInstant {
44
val jtInstant = java.time.Clock.systemUTC().instant()
45
RealmInstantImpl(jtInstant.epochSecond, jtInstant.nano)
46
} else {
47
- RealmInstantImpl(System.currentTimeMillis(), 0)
+ val now = System.currentTimeMillis()
48
+ RealmInstantImpl(now / 1000, (now % 1000).toInt() * 1_000_000)
49
}
50
0 commit comments