Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.8.0
-
None
Description
Position.timestamp is inconsistent. Code in getCurrentLocation will set it as the return value from the platform (which is currently inconsistent as milliseconds or Date object) or as a new Date(). Position constructor sets it as incoming value or Date().getTime(). Code in getCurrentLocation treats it as a Date: geolocation.lastPosition.timestamp.getTime().
Needs to be made consistent as Date() object to comply with spec (http://www.w3.org/TR/geolocation-API/#position_interface).
Discussed on list in thread beginning here: http://mail-archives.apache.org/mod_mbox/incubator-callback-dev/201206.mbox/%3CCAM1AYQCyqNd9pqn1eVmOb5smM37juNXvZKeH_SxXmxAWSnCPpw@mail.gmail.com%3E