This commit is contained in:
Jakob Ketterl 2019-09-24 21:42:00 +02:00
parent 22f4504629
commit ba03243527

View File

@ -322,7 +322,7 @@ class WsjtParser(object):
class Decoder(object): class Decoder(object):
def parse_timestamp(self, instring, dateformat): def parse_timestamp(self, instring, dateformat):
ts = datetime.strptime(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): class Jt9Decoder(Decoder):