react-native/Libraries
Gašper Žnidaršič Bečaj 13f2aea85f Fix for different geolocation timestamp for Android and iOS
Summary:Geolocation timestamp is different for Android and iOs. For Android it is returning in UTC time in milliseconds since January 1, 1970, for iOS it was returned as time interval relative to an absolute reference date (00:00:00 UTC on 1 January 2001). Also for iOS time returned was "current system absolute time" and not the time at which this location was determined.

Tested with 0.21.0-rc React Native. Init project with this additional code:
`constructor(props) {super(props);
    navigator.geolocation.getCurrentPosition(
      (position) => {
        let initialPosition = JSON.stringify(position);
        console.log(position.timestamp);
      },
      (error) => alert(error.message),
      {enableHighAccuracy: true, timeout: 20000, maximumAge: 1000} );
  }
`

Tested with iOs simulator (iPhone 6S plus 9.2; iPhone 5s 8.4 )

sample result with change: 1456407795021.235
sample result without change: 23478100615007.884

Explaining links for iOS:
https://developer.apple.com/library/ios/do
Closes https://github.com/facebook/react-native/pull/6150

Differential Revision: D2976909

Pulled By: nicklockwood

fb-gh-sync-id: 9607ed669d7200591f8387e4186cf7c225ae9b3a
shipit-source-id: 9607ed669d7200591f8387e4186cf7c225ae9b3a
2016-02-25 07:23:33 -08:00
..
ART Fixed ART background color 2016-01-08 15:42:32 -08:00
ActionSheetIOS Add support for sharing images or other media via iOS share sheet 2016-02-22 05:34:32 -08:00
AdSupport Text highlighting on iOS 2015-07-24 08:41:58 -08:00
Animated CI now builds docs website and deploys it to /%version% path 2016-02-11 06:17:42 -08:00
AppRegistry Decouple Module System from Native Calls 2015-12-08 16:03:37 -08:00
AppState Tweak docs before releasing 0.19 2016-01-30 17:11:28 -08:00
AppStateIOS Made Map & Set polyfills available globally 2016-01-20 08:27:38 -08:00
BatchedBridge Implement Android's dispatchViewManagerCommand interface on iOS 2016-01-06 05:58:37 -08:00
CameraRoll Fix promises on iOS to no longer wrap values in Arrays 2016-02-10 07:25:35 -08:00
Components Fix scrollResponderScrollTo deprecated warning 2016-02-25 06:26:34 -08:00
CustomComponents Introducing NavigationCardStack 2016-02-24 18:51:30 -08:00
DebugComponentHierarchy Decouple Module System from Native Calls 2015-12-08 16:03:37 -08:00
Device Decouple Module System from Native Calls 2015-12-08 16:03:37 -08:00
Devtools Use pre-bundled elements inspector 2015-10-29 11:21:32 -07:00
Fetch Add fetch's clone function to Request and Response prototypes 2015-10-30 10:57:33 -07:00
Geolocation Fix for different geolocation timestamp for Android and iOS 2016-02-25 07:23:33 -08:00
Image fix an image cropping bug when displaySize is specified 2016-02-18 00:38:31 -08:00
Inspector Fix warnings of StyleInspector 2016-02-10 08:40:39 -08:00
Interaction Reverted commit D2803288 2016-02-11 02:45:34 -08:00
JavaScriptAppEngine Fix SourceMap loading on Android 2016-02-02 12:21:34 -08:00
LayoutAnimation Wrapped UIManager native module for better abstraction 2015-11-27 07:00:32 -08:00
Linking Update Linking.js 2016-02-12 12:58:31 -08:00
LinkingIOS add Universal Links support to Linking.getInitialURL(). Fixes #6099 2016-02-25 07:09:33 -08:00
Modal Improve Modal docs describing iOS only support 2015-12-05 18:48:28 -08:00
NativeApp Decouple Module System from Native Calls 2015-12-08 16:03:37 -08:00
NavigationExperimental Introducing NavigationCardStack 2016-02-24 18:51:30 -08:00
Network XMLHttpRequest.DONE is not defined. Fixes #5883 2016-02-16 23:59:33 -08:00
Picker Add position to Picker onValueChange's call 2016-02-19 06:50:33 -08:00
Portal Wrapped UIManager native module for better abstraction 2015-11-27 07:00:32 -08:00
PullToRefresh Deprecate PullToRefreshViewAndroid and remove it from the website 2016-02-21 16:17:36 -08:00
PushNotificationIOS Remove duplicate register call 2016-02-24 03:56:31 -08:00
QuickPerformanceLogger added QPL for main interactions 2015-09-29 22:25:23 -07:00
RCTTest Replace direct access of NativeModules.UIManager with require('UIManager') 2016-01-30 07:36:34 -08:00
RKBackendNode Wrapped UIManager native module for better abstraction 2015-11-27 07:00:32 -08:00
ReactIOS revert D2928371 to unbreak drawer. 2016-02-22 22:45:35 -08:00
ReactNative Only freeze valid attributes in `mountComponent` 2016-02-16 13:58:33 -08:00
Sample Remove invariant of Sample.ios.js that is not used 2015-05-26 18:25:00 -07:00
Settings Replaced RegExp method parser with recursive descent 2015-12-10 10:12:29 -08:00
Storage multiGet breaking test and fix 2016-02-05 16:45:46 -08:00
StyleSheet Replace usages of hexToRgb with setNormalizedColorAlpha 2016-02-09 14:58:34 -08:00
Text Add support for `textAlign` on iOS multiline text input 2016-02-07 12:38:36 -08:00
Utilities Removed 'screen' option from snapshot API 2016-02-24 09:06:31 -08:00
Vibration Text highlighting on iOS 2015-07-24 08:41:58 -08:00
WebSocket Fix OSS iOS build 2016-02-17 07:38:33 -08:00
react-native Resolve react flow definitions 2016-02-25 02:45:34 -08:00
vendor CI now builds docs website and deploys it to /%version% path 2016-02-11 06:17:42 -08:00
Promise.js Reverted commit D2803288 2016-02-11 02:45:34 -08:00