{"action":"created","issue":{"url":"https://api.github.com/repos/OneBusAway/onebusaway-application-modules/issues/177","repository_url":"https://api.github.com/repos/OneBusAway/onebusaway-application-modules","labels_url":"https://api.github.com/repos/OneBusAway/onebusaway-application-modules/issues/177/labels{/name}","comments_url":"https://api.github.com/repos/OneBusAway/onebusaway-application-modules/issues/177/comments","events_url":"https://api.github.com/repos/OneBusAway/onebusaway-application-modules/issues/177/events","html_url":"https://github.com/OneBusAway/onebusaway-application-modules/issues/177","id":159061462,"number":177,"title":"Vehicle status.lastLocationUpdateTime is seconds (instead of ms) past epoch","user":{"login":"barbeau","id":928045,"avatar_url":"https://avatars.githubusercontent.com/u/928045?v=3","gravatar_id":"","url":"https://api.github.com/users/barbeau","html_url":"https://github.com/barbeau","followers_url":"https://api.github.com/users/barbeau/followers","following_url":"https://api.github.com/users/barbeau/following{/other_user}","gists_url":"https://api.github.com/users/barbeau/gists{/gist_id}","starred_url":"https://api.github.com/users/barbeau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barbeau/subscriptions","organizations_url":"https://api.github.com/users/barbeau/orgs","repos_url":"https://api.github.com/users/barbeau/repos","events_url":"https://api.github.com/users/barbeau/events{/privacy}","received_events_url":"https://api.github.com/users/barbeau/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OneBusAway/onebusaway-application-modules/labels/bug","name":"bug","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"sheldonabrown","id":1001757,"avatar_url":"https://avatars.githubusercontent.com/u/1001757?v=3","gravatar_id":"","url":"https://api.github.com/users/sheldonabrown","html_url":"https://github.com/sheldonabrown","followers_url":"https://api.github.com/users/sheldonabrown/followers","following_url":"https://api.github.com/users/sheldonabrown/following{/other_user}","gists_url":"https://api.github.com/users/sheldonabrown/gists{/gist_id}","starred_url":"https://api.github.com/users/sheldonabrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sheldonabrown/subscriptions","organizations_url":"https://api.github.com/users/sheldonabrown/orgs","repos_url":"https://api.github.com/users/sheldonabrown/repos","events_url":"https://api.github.com/users/sheldonabrown/events{/privacy}","received_events_url":"https://api.github.com/users/sheldonabrown/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2016-06-08T01:41:10Z","updated_at":"2016-06-16T13:48:50Z","closed_at":null,"body":"I got a report today from a user in Puget Sound that the \"Last updated\" time in the vehicle marker popup balloon is wrong in OBA Android:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/928045/15880011/56bdfbca-2cf7-11e6-8597-4ba204c7f4bc.png)\r\n\r\nHere's a sample `trips-for-route` API request:\r\nhttp://api.pugetsound.onebusaway.org/api/where/trips-for-route/1_102576.json?includeStatus=true&app_ver=62version=2&key=v1_BktoDJ2gJlu6nLM6LsT9H8IUbWc%3DcGF1bGN3YXR0c0BnbWFpbC5jb20%3D\r\n\r\n...and a the `status` block from that response:\r\n\r\n~~~\r\nstatus: {\r\nactiveTripId: \"1_30904954\",\r\nblockTripSequence: 12,\r\nclosestStop: \"1_30570\",\r\nclosestStopTimeOffset: -7,\r\ndistanceAlongTrip: 11774.797356666386,\r\nfrequency: null,\r\nlastKnownDistanceAlongTrip: 0,\r\nlastKnownLocation: {\r\nlat: 47.58036422729492,\r\nlon: -122.32905578613281\r\n},\r\nlastKnownOrientation: 0,\r\nlastLocationUpdateTime: 1465348788,  // <-- Used to be milliseconds past epoch\r\nlastUpdateTime: 1465348788000,\r\nnextStop: \"1_30590\",\r\nnextStopTimeOffset: 61,\r\norientation: 90,\r\nphase: \"in_progress\",\r\nposition: {\r\nlat: 47.58058676414876,\r\nlon: -122.329063\r\n},\r\npredicted: true,\r\nscheduleDeviation: 220,\r\nscheduledDistanceAlongTrip: 11774.797356666386,\r\nserviceDate: 1465282800000,\r\nsituationIds: [ ],\r\nstatus: \"default\",\r\ntotalDistanceAlongTrip: 13179.505611838784,\r\nvehicleId: \"1_2710\"\r\n},\r\n~~~\r\n\r\nIt looks like `lastLocationUpdateTime` went from being milliseconds past epoch (i.e., `System.currentTimeMillis()`) to seconds past epoch (i.e., POSIX time).\r\n\r\nI'm guessing there was a server-side update recently that broke this?  From some quick testing it looks like it's broken for all routes I've tested (randomly grabbed 5-6) in Puget Sound and Washington, D.C.\r\n\r\nAlso, just a guess - GTFS-realtime timestamps are POSIX time, it's possible the GTFS-rt timestamp is getting passed through to the OBA REST API unaltered?\r\n\r\n@sheldonabrown Would you be able to roll out a fix for this quickly?"},"comment":{"url":"https://api.github.com/repos/OneBusAway/onebusaway-application-modules/issues/comments/226490162","html_url":"https://github.com/OneBusAway/onebusaway-application-modules/issues/177#issuecomment-226490162","issue_url":"https://api.github.com/repos/OneBusAway/onebusaway-application-modules/issues/177","id":226490162,"user":{"login":"barbeau","id":928045,"avatar_url":"https://avatars.githubusercontent.com/u/928045?v=3","gravatar_id":"","url":"https://api.github.com/users/barbeau","html_url":"https://github.com/barbeau","followers_url":"https://api.github.com/users/barbeau/followers","following_url":"https://api.github.com/users/barbeau/following{/other_user}","gists_url":"https://api.github.com/users/barbeau/gists{/gist_id}","starred_url":"https://api.github.com/users/barbeau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barbeau/subscriptions","organizations_url":"https://api.github.com/users/barbeau/orgs","repos_url":"https://api.github.com/users/barbeau/repos","events_url":"https://api.github.com/users/barbeau/events{/privacy}","received_events_url":"https://api.github.com/users/barbeau/received_events","type":"User","site_admin":false},"created_at":"2016-06-16T13:48:50Z","updated_at":"2016-06-16T13:48:50Z","body":"Thanks!  From quick testing it looks like this is fixed in Puget Sound, but not WMATA in Washington, D.C.  Is that expected?"}}
{"actor":{"display_login":"barbeau"}}