mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-04-04 14:07:32 +00:00
fix date
This commit is contained in:
parent
22f4504629
commit
ba03243527
1 changed files with 1 additions and 1 deletions
|
|
@ -322,7 +322,7 @@ class WsjtParser(object):
|
|||
class Decoder(object):
|
||||
def parse_timestamp(self, instring, dateformat):
|
||||
ts = datetime.strptime(instring, dateformat)
|
||||
return int(datetime.combine(date.today(), ts.time()).replace(tzinfo=timezone.utc).timestamp() * 1000)
|
||||
return int(datetime.combine(datetime.utcnow().date(), ts.time()).replace(tzinfo=timezone.utc).timestamp() * 1000)
|
||||
|
||||
|
||||
class Jt9Decoder(Decoder):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue