mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-01 21:54:55 -04:00
More Sonar bug fixes
This commit is contained in:
@@ -14,7 +14,7 @@ except ImportError:
|
||||
import _thread as thread
|
||||
import time
|
||||
|
||||
from datetime import datetime
|
||||
from datetime import datetime, timezone
|
||||
from optparse import OptionParser
|
||||
|
||||
import sdrangel
|
||||
@@ -50,7 +50,7 @@ class SuperScannerAPIError(SuperScannerError):
|
||||
|
||||
# ======================================================================
|
||||
def log_with_timestamp(message):
|
||||
t = datetime.utcnow()
|
||||
t = datetime.now(timezone.utc)
|
||||
print(f'{t.isoformat()} {message}')
|
||||
|
||||
# ======================================================================
|
||||
|
||||
Reference in New Issue
Block a user