]> www.average.org Git - loctrkd.git/blobdiff - gps303/lookaside.py
fill in `when` in Resp packet
[loctrkd.git] / gps303 / lookaside.py
index dd5a449bdbcfa771fd5358f25b1d56afd52b386a..edc899fc8742c5f525eacab7bc21dd3b97265ce9 100644 (file)
@@ -39,6 +39,7 @@ def runserver(conf):
             )
             resp = Resp(
                 imei=zmsg.imei,
+                when=zmsg.when,  # not the current time, but the original!
                 packet=msg.Out(latitude=lat, longitude=lon).packed,
             )
             log.debug("Response for lat=%s, lon=%s: %s", lat, lon, resp)