mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-01-31 20:44:19 +01:00
explicit timezone information
This commit is contained in:
parent
eb1b1ba22f
commit
a6d7209a45
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Reference in a new issue