explicit timezone information

This commit is contained in:
Jakob Ketterl 2019-07-06 21:29:49 +02:00
parent eb1b1ba22f
commit a6d7209a45

View File

@ -117,8 +117,8 @@ class WsjtParser(object):
return return
out = {} out = {}
time = datetime.strptime(msg[0:6], "%H%M%S") ts = datetime.strptime(msg[0:6], "%H%M%S")
out["timestamp"] = datetime.combine(date.today(), time.time()).timestamp() out["timestamp"] = datetime.combine(date.today(), ts.time(), datetime.now().tzinfo).timestamp()
out["db"] = float(msg[7:10]) out["db"] = float(msg[7:10])
out["dt"] = float(msg[11:15]) out["dt"] = float(msg[11:15])
out["freq"] = int(msg[16:20]) out["freq"] = int(msg[16:20])