From ba032435270d5a01109fc1f3aba78e6bcc6ac1f8 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Tue, 24 Sep 2019 21:42:00 +0200 Subject: [PATCH] fix date --- owrx/wsjt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/owrx/wsjt.py b/owrx/wsjt.py index 21fefb0..e785e4e 100644 --- a/owrx/wsjt.py +++ b/owrx/wsjt.py @@ -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):