chore: use UTC+8 time

This commit is contained in:
2024-09-25 00:50:03 +08:00
parent 97f84f1833
commit adf54c45c4
+3 -1
View File
@@ -95,7 +95,9 @@ def upload_score(name, id, score_data):
"name": name,
"score": score_data["score"],
"running_time": score_data["running_time"],
"time": time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()),
"time": time.strftime(
"%Y-%m-%d %H:%M:%S", time.gmtime(time.time() + 8 * 3600)
),
"details": score_data["details"],
},
)