{ "id": "109504", "key": "AC-1908", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2013-02-12T21:06:48.000+0000", "created": "2013-02-11T17:41:28.000+0000", "labels": [ "android", "geolocation", "ios", "timestamp" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:40:49.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "The timestamp received in location does not seem to be in milliseconds.\r\nFor eg. we receive timestamp as 1360506558000 where as it should be 1360506558\r\nObserved on iOS as well as android.", "attachment": [], "flagged": false, "summary": "Geolocation timestamp is not in milliseconds", "creator": { "name": "abhinavv", "key": "abhinavv", "displayName": "Abhinav Tyagi", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "abhinavv", "key": "abhinavv", "displayName": "Abhinav Tyagi", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "android ios", "comment": { "comments": [ { "id": "238217", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Can you please provide a test case that shows the problem? Until then, marked needs more info.", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-12T21:06:48.000+0000", "updated": "2013-02-12T21:06:48.000+0000" }, { "id": "283205", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nWhen we tested this issue with the test code below, we got expected results. Please check our code sample where I display timestamp value in console. For more information [Click here|http://www.w3schools.com/js/tryit.asp?filename=tryjsref_gettime]. Timestamp values are 13 digit in milliseconds format. Hope this clarifies the issue. If you have any question on this, please feel free update this JIRA. If we don't hear back from you, we will assume the issue is resolved and this ticket can be closed.\r\n\r\nRegards,\r\n\r\n\r\n\r\nh5. Test Code\r\n\r\n{code}\r\n \r\nTitanium.Geolocation.accuracy = Titanium.Geolocation.ACCURACY_BEST;\r\nTi.Geolocation.preferredProvider = Ti.Geolocation.PROVIDER_GPS;\r\nTitanium.Geolocation.distanceFilter = 10;\r\nif (Titanium.Geolocation.locationServicesEnabled === false) {\r\n\talert('Your device has GPS turned off. Please turn it on.');\r\n}\r\n\r\nTi.Geolocation.purpose = 'Testig';\r\nvar longitude, latitude, altitude, heading, accuracy, speed, timestamp, altitudeAccuracy;\r\n\r\nTitanium.Geolocation.getCurrentPosition(function(e) {\r\n\tif (e.success) {\r\n\r\n\t\tlongitude = e.coords.longitude;\r\n\t\tlatitude = e.coords.latitude;\r\n\t\taltitude = e.coords.altitude;\r\n\t\theading = e.coords.heading;\r\n\t\taccuracy = e.coords.accuracy;\r\n\t\tspeed = e.coords.speed;\r\n\t\ttimestamp = e.coords.timestamp;\r\n\t\taltitudeAccuracy = e.coords.altitudeAccuracy;\r\n\t\tTi.API.info('timestamp: ' + timestamp);\r\n\t} else {\r\n\r\n\t\talert(JSON.stringify(e));\r\n\t}\r\n\r\n});\r\n \r\n\r\n{code}\r\n\r\nThanks ", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-09T14:34:28.000+0000", "updated": "2013-12-09T18:33:53.000+0000" }, { "id": "286070", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing since we got no further activity from Abhinav. A test sample illustrating the issue has been posted.", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-28T07:02:01.000+0000", "updated": "2013-12-28T07:02:01.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }