Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Geolocation's timestamp is now corrupt after 1.1.2

I just installed the new Titanium mobile SDK drop. And now Geolocation's timestamp seems to be corrupt. Here is code that worked yesterday, that has problems today:

Titanium.Geolocation.getCurrentPosition(function(e) {
    timestamp = e.coords.timestamp;
    var dt = new Date(e.coords.timestamp);
    var dts = dt.toLocaleString();

What I get (on the device) is:
dts == "January 1, 1970 12:00:00 AM GMT-05:00"

— asked March 25th 2010 by Bruce Martin
  • geolocation

2 Answers

  • Hmm.. Looking into this. We made no changes in Geolocation that I can tell.

    — answered March 25th 2010 by Jeff Haynie
  • Sorry. This was a mistake on my part. I had a typo in the actual code, different than what I sent to you. This works okay actually.

    — answered March 27th 2010 by Bruce Martin
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.