Changed DT method to fix UTC time

This commit is contained in:
Profitroll 2023-01-25 15:59:54 +01:00
parent 1294d1a037
commit dd7031ff19

View File

@ -1,4 +1,4 @@
from datetime import datetime
from datetime import datetime, timezone
from urllib.parse import quote_plus
from os import remove
from typing import Dict, List, Literal, Union
@ -182,7 +182,7 @@ async def saves_post(device: str, files: List[UploadFile], apikey: APIKey = Depe
zipped = zip_saves(save_data_filename, save_data_file, save_info_file)
save_date = int(datetime.utcnow().timestamp())
save_date = int(datetime.now(tz=timezone.utc).timestamp())
index = {
"id": int(save_data["SaveGame"]["uniqueIDForThisGame"]),