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

@@ -1280,4 +1280,5 @@ def test_rpc_health(mocker, default_conf) -> None:
freqtradebot = get_patched_freqtradebot(mocker, default_conf)
rpc = RPC(freqtradebot)
result = rpc._health()
assert result['last_process'] == '1970-01-01 00:00:00'
assert result['last_process'] == '1970-01-01 00:00:00+00:00'
assert result['last_process_ts'] == 0

View File

@@ -1451,4 +1451,5 @@ def test_health(botclient):
assert_response(rc)
ret = rc.json()
assert ret['last_process'] == '1970-01-01T00:00:00'
assert ret['last_process_ts'] == 0
assert ret['last_process'] == '1970-01-01T00:00:00+00:00'