加入时间戳修正配置

This commit is contained in:
2025-09-29 23:30:51 +08:00
parent 8683693cd1
commit 9dada59c56
5 changed files with 7 additions and 4 deletions

View File

@@ -61,7 +61,7 @@ def get_daystamp() -> int:
if time_override != -1:
return int(time_override)
return int(time.time() // (24 * 3600))
return int((time.time()+config.get("timezone_offset")) // (24 * 3600))
def get_md5(text):
return hashlib.md5(text.encode('utf-8')).hexdigest()