EDGEResearchLab / live

Retired live tracking site
http://edge-rl.org
GNU General Public License v2.0
2 stars 0 forks source link

Time stamping inconsistencies #6

Open mattrasband opened 10 years ago

mattrasband commented 10 years ago

Two related issues:

  1. We are timestamping receipt as millis since epoch
  2. We are deserializing (or perhaps not converting) reported time correctly.

Example:

{ "_id" : ObjectId("544bc7f16625500000d032ee"), "edgeId" : "32135u213", "latitude" : 38.877985, "longitude" : -104.407215, "altitude" : 1879.2, "speed" : 0, "direction" : 0, "time" : 1452441309, "source" : "satcom", "receiptTime" : 1414252529804 }
mattrasband commented 10 years ago

Item 1 has already been fixed and deployed hot (yikes). Just parseInt(new Date().getTime() / 1000).