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
out = {}
time = datetime.strptime(msg[0:6], "%H%M%S")
out["timestamp"] = datetime.combine(date.today(), time.time()).timestamp()
ts = datetime.strptime(msg[0:6], "%H%M%S")
out["timestamp"] = datetime.combine(date.today(), ts.time(), datetime.now().tzinfo).timestamp()
out["db"] = float(msg[7:10])
out["dt"] = float(msg[11:15])
out["freq"] = int(msg[16:20])