fix:修复插件无法被关闭,新增新log浏览器

This commit is contained in:
SengokuCola
2025-06-16 19:34:07 +08:00
parent 840dc538d4
commit 986e88d48c
10 changed files with 755 additions and 11 deletions

View File

@@ -633,7 +633,7 @@ def translate_timestamp_to_human_readable(timestamp: float, mode: str = "normal"
elif diff < 86400 * 2:
return f"{int(diff / 86400)}天前"
else:
return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(timestamp)) + ":\n"
return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(timestamp)) + ":"
else: # mode = "lite" or unknown
# 只返回时分秒格式,喵~
return time.strftime("%H:%M:%S", time.localtime(timestamp))