Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-866

Position.timestamp treated inconsistently

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.0
    • 1.8.0
    • cordova-js
    • 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

      Attachments

        Issue Links

          Activity

            People

              becka11y Becky Gibson
              becka11y Becky Gibson
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: