explicit timezone information
This commit is contained in:
parent
eb1b1ba22f
commit
a6d7209a45
@ -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])
|
||||||
|
Loading…
Reference in New Issue
Block a user