diff --git a/extensions/saves.py b/extensions/saves.py index abbf73b..4ea461b 100644 --- a/extensions/saves.py +++ b/extensions/saves.py @@ -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"]),