GPS time on Android not working

Hi there,

I am looking at the GPS tutorial, and have it installed on my iPhone and two Android devices.

On the iPhone it works perfectly, but on both of the Android devices there is a problem with the time. The time is returned (by event.time) as a “-4” by both Android devices.

Is this a bug?
Has anyone else noticed this?
Is there a way to fix it?

Many thanks
[import]uid: 74250 topic_id: 16132 reply_id: 316132[/import]

Hi Robin, I’ve the same ‘problem’ on my Asus eeePad and my HTC with the GPS app. The event.time (for the GPS) works with iOS but not on my Android devices.
Thought it was me… maybe not

Have you found a way to fix this yet for Android ?

Thanks. [import]uid: 74519 topic_id: 16132 reply_id: 60166[/import]

@ ian42

Hello there,

No I have not found a solution to this. I had hoped that one of the Ansca staff would easily be able to verify if this is a bug or not, but I’m about to post the question in the bug forum - I just thought that someone would have noticed this before.

Having done a wee bit more with this, the Android devices definitely return a “-4” because when I try to convert it to a more readable time format, by the line
[lua]local t = os.date("!*t", math.floor(event.time))[/lua]
I get “31/12/1969 23:59:56” which is 4 seconds before the all important time of 01/01/1970 00:00:00.

It would be really nice to know if this is a bug, or if there is a work-a-round.

cheers! [import]uid: 74250 topic_id: 16132 reply_id: 60402[/import]

ian42

I’ve sent a bug report to Ansca - see the Bug Forum for the link & details etc.

I’ll report back there whenever I get a response.

Did you manage to get this working at all?

hth [import]uid: 74250 topic_id: 16132 reply_id: 61045[/import]

Hi Robin,
Hmmm, No I’ve failed to get this going on ny HTC Desire HD (Android 2.2.3) AND my Asus eeePad (Honeycomb 3.2.1)
Like you, I get the -4 / 4 secs before the midnight 01/01/01 1970 DTG…
Currently woring on a ‘device time’ fail safe - but it’s kinda rocky at best ! I’ll let you now how I get on.

btw - thanks for your time

Rgds Ian [import]uid: 74519 topic_id: 16132 reply_id: 61304[/import]