GPS event.time using OS time not satellite seconds

In my app I am using the GPS to collect the time independent from the time the device is set to. During my testing I changed the device's time manually ahead by 3 hours and 15 minutes - the GPS time reports the exact same time as the device. Therefore I assume the GPS event.time is taking the device's time and not passing the actual GPS timestamp through to the application.

As my application collect timestamps (for payroll purposes) this is a PRIORITY 1 defect.

Please Ansca management, please fix this defect.

Lee

I think you will find that the time returned by the GPS is actually UTC (ie the GPS's timestamp) - you can check this by using a site such as:

  • www.epochconverter.com
  • I use the following to extract the UTC from the returned event.time:

    1
    
    local t = os.date("!*t", math.floor(event.time))
    views:1664 update:2011/10/18 15:01:22
    corona forums © 2003-2011