maps icon indicating copy to clipboard operation
maps copied to clipboard

UserLocation. onUpdate returns different timestamp units on iOS and Android

Open gogolubev opened this issue 7 years ago • 2 comments

Describe the bug onUpdate method of MapboxGL.UserLocation has different behavior depending on the platform.

  • iOS. onUpdate returns timestamp in seconds.
  • Android. It returns timestamp in miliseconds.

To Reproduce Nothing special to do. Just log it.

Expected behavior It must be equal on both platforms.

Screenshots

Versions (please complete the following information):

  • Platfrom: Android, iOS
  • Device: Xiaomi 6A, iPhone X Simulator
  • OS: Android 8.0, iOS 12
  • SDK Version 28
  • React Native Version 59

Additional context

gogolubev avatar Jul 03 '19 13:07 gogolubev

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 01 '19 13:09 stale[bot]

I also experience this issue, and think that both devices should return the same units.

Spacarar avatar Sep 19 '19 22:09 Spacarar