Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A problem with time accuracy #23

Open
TheChonenOne777 opened this issue Jul 26, 2024 · 0 comments
Open

A problem with time accuracy #23

TheChonenOne777 opened this issue Jul 26, 2024 · 0 comments

Comments

@TheChonenOne777
Copy link

Hi!
I have been testing this library for some time and noticed that around 1% of devices has the difference between time provided by library and time on the device (auto time enabled on the device). This difference may vary from 3 minutes up to 30 minutes which is weird.

I have initialize fun in application with scheduler for background sync and I also call triggerManualSyncNow() every time the app resumes. I take time with nowOrNull() fun. Also I am calling sync both on background and foreground threads.

Could you please try to reason why this deviation happening? Maybe I am not syncing correctly or doing it too much or there is a problem with the custom server I am using which I doubt because it is an official ntp server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant