Update /health endpoint to be in local timezone

This commit is contained in:
Matthias
2022-01-28 07:57:43 +01:00
parent e72c3ec19f
commit 15d5389564
6 changed files with 14 additions and 8 deletions

View File

@@ -100,7 +100,7 @@ class FreqtradeBot(LoggingMixin):
self._exit_lock = Lock()
LoggingMixin.__init__(self, logger, timeframe_to_seconds(self.strategy.timeframe))
self.last_process = datetime.utcfromtimestamp(0.0)
self.last_process = datetime(1970, 1, 1, tzinfo=timezone.utc)
def notify_status(self, msg: str) -> None:
"""
@@ -189,7 +189,7 @@ class FreqtradeBot(LoggingMixin):
self.enter_positions()
Trade.commit()
self.last_process = datetime.utcnow()
self.last_process = datetime.now(timezone.utc)
def process_stopped(self) -> None:
"""