fix: Solving the timezone issue in Redis, as well as the problem of MySQL logs always being in UTC timezone. (#268)

This commit is contained in:
loveiwei
2023-11-15 20:48:52 +08:00
committed by GitHub
parent 8856115e7c
commit 3b73971bf8
3 changed files with 5 additions and 3 deletions

View File

@@ -38,7 +38,6 @@ def string_to_bytes(value):
byte_string = value
else:
byte_string = value.encode("utf-8")
return byte_string
@@ -314,7 +313,7 @@ class KeyManage:
secrets_root_key = current_app.config.get("secrets_root_key")
msg, ok = self.is_valid_root_key(secrets_root_key)
if not ok:
return {"message": msg, "status": "failed"}
return true
status = self.backend.get(backend_seal_key)
return status == "block"