realm / realm-kotlin

Kotlin Multiplatform and Android SDK for the Realm Mobile Database: Build Better Apps Faster.
Apache License 2.0
968 stars 61 forks source link

RealmInstant.now() returns wrong value on API 25 and below #1849

Open stavfx opened 4 weeks ago

stavfx commented 4 weeks ago

How frequently does the bug occur?

Always

Description

The fix introduced here is creating instances of RealmInstantImpl with milliseconds instead of seconds for devices running API 25 and below.

Stacktrace & log output

No response

Can you reproduce the bug?

Always

Reproduction Steps

No response

Version

1.16.0

What Atlas App Services are you using?

Local Database only

Are you using encryption?

No

Platform OS and version(s)

Android 7.1.2

Build environment

No response

sync-by-unito[bot] commented 4 weeks ago

➤ PM Bot commented:

Jira ticket: RKOTLIN-1137

stavfx commented 4 weeks ago

Proposed fix: https://github.com/realm/realm-kotlin/pull/1850