Test force utc timezone (#50)
This commit is contained in:
+2
-1
@@ -12,6 +12,7 @@ from interruptingcow import timeout
|
|||||||
from functools import partial
|
from functools import partial
|
||||||
from logger import _LOGGER
|
from logger import _LOGGER
|
||||||
from workers_queue import _WORKERS_QUEUE
|
from workers_queue import _WORKERS_QUEUE
|
||||||
|
from pytz import utc
|
||||||
|
|
||||||
class WorkersManager:
|
class WorkersManager:
|
||||||
class Command:
|
class Command:
|
||||||
@@ -31,7 +32,7 @@ class WorkersManager:
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
self._mqtt_callbacks = []
|
self._mqtt_callbacks = []
|
||||||
self._update_commands = []
|
self._update_commands = []
|
||||||
self._scheduler = BackgroundScheduler()
|
self._scheduler = BackgroundScheduler(timezone=utc)
|
||||||
self._daemons = []
|
self._daemons = []
|
||||||
|
|
||||||
def register_workers(self, config):
|
def register_workers(self, config):
|
||||||
|
|||||||
Reference in New Issue
Block a user