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"
2 Answers
-
Hmm.. Looking into this. We made no changes in Geolocation that I can tell.
-
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.